mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 01:07:52 +00:00
* 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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user