aboutsummaryrefslogtreecommitdiff
path: root/gdb/ada-lang.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-01-21 18:13:14 +0000
committerTom Tromey <tromey@redhat.com>2013-01-21 18:13:14 +0000
commit10f0c4bbfa440916bce5d7407fd2b7447db31ef6 (patch)
tree7c5ef827541308d1d7876de8ff93fdd280b694e1 /gdb/ada-lang.c
parent86f62fd71f25a7f64ff0f7747df29c3488269116 (diff)
downloadgdb-10f0c4bbfa440916bce5d7407fd2b7447db31ef6.zip
gdb-10f0c4bbfa440916bce5d7407fd2b7447db31ef6.tar.gz
gdb-10f0c4bbfa440916bce5d7407fd2b7447db31ef6.tar.bz2
* 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/ada-lang.c')
-rw-r--r--gdb/ada-lang.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c
index b4849a9..4488b88 100644
--- a/gdb/ada-lang.c
+++ b/gdb/ada-lang.c
@@ -1310,8 +1310,8 @@ ada_decode_symbol (const struct general_symbol_info *gsymbol)
{
struct objfile *objf = gsymbol->obj_section->objfile;
- *resultp = obsavestring (decoded, strlen (decoded),
- &objf->objfile_obstack);
+ *resultp = obstack_copy0 (&objf->objfile_obstack,
+ decoded, strlen (decoded));
}
/* Sometimes, we can't find a corresponding objfile, in which
case, we put the result on the heap. Since we only decode