summaryrefslogtreecommitdiff
path: root/gdb/xcoffread.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-01-21 18:13:10 +0000
committerTom Tromey <tromey@redhat.com>2013-01-21 18:13:10 +0000
commite33ba1936882d0d5ccae19c8358fa03bb3c62c03 (patch)
tree7a6fb27d36be8e0ef815e4f38e2e0eb519e06a53 /gdb/xcoffread.c
parent8c35b787fc999a2d05e584eb41afe3c02292f0e3 (diff)
downloadgdb-e33ba1936882d0d5ccae19c8358fa03bb3c62c03.tar.gz
* symfile.h (obsavestring): Don't declare.
* symfile.c (obsavestring): Remove. * ada-exp.y: Use obstack_copy0, not obsavestring. * ada-lang.c: Use obstack_copy0, not obsavestring. * coffread.c: Use obstack_copy0, not obsavestring. * cp-namespace.c: Use obstack_copy0, not obsavestring. * dbxread.c: Use obstack_copy0, not obsavestring. * dwarf2read.c: Use obstack_copy0, not obsavestring. * jit.c: Use obstack_copy0, not obsavestring. * mdebugread.c: Use obstack_copy0, not obsavestring. * psymtab.c: Use obstack_copy0, not obsavestring. * stabsread.c: Use obstack_copy0, not obsavestring. * xcoffread.c: Use obstack_copy0, not obsavestring.
Diffstat (limited to 'gdb/xcoffread.c')
-rw-r--r--gdb/xcoffread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c
index a71a958d4e6..896b817f148 100644
--- a/gdb/xcoffread.c
+++ b/gdb/xcoffread.c
@@ -1512,8 +1512,8 @@ read_xcoff_symtab (struct objfile *objfile, struct partial_symtab *pst)
#define SYMNAME_ALLOC(NAME, ALLOCED) \
- ((ALLOCED) ? (NAME) : obsavestring ((NAME), strlen (NAME), \
- &objfile->objfile_obstack))
+ ((ALLOCED) ? (NAME) : obstack_copy0 (&objfile->objfile_obstack, \
+ (NAME), strlen (NAME)))
/* process one xcoff symbol. */