mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 06:45:56 +08: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:
@ -2011,8 +2011,8 @@ coff_read_struct_type (int index, int length, int lastsym,
|
||||
list = new;
|
||||
|
||||
/* Save the data. */
|
||||
list->field.name = obsavestring (name, strlen (name),
|
||||
&objfile->objfile_obstack);
|
||||
list->field.name = obstack_copy0 (&objfile->objfile_obstack,
|
||||
name, strlen (name));
|
||||
FIELD_TYPE (list->field) = decode_type (ms, ms->c_type,
|
||||
&sub_aux, objfile);
|
||||
SET_FIELD_BITPOS (list->field, 8 * ms->c_value);
|
||||
@ -2028,8 +2028,8 @@ coff_read_struct_type (int index, int length, int lastsym,
|
||||
list = new;
|
||||
|
||||
/* Save the data. */
|
||||
list->field.name = obsavestring (name, strlen (name),
|
||||
&objfile->objfile_obstack);
|
||||
list->field.name = obstack_copy0 (&objfile->objfile_obstack,
|
||||
name, strlen (name));
|
||||
FIELD_TYPE (list->field) = decode_type (ms, ms->c_type,
|
||||
&sub_aux, objfile);
|
||||
SET_FIELD_BITPOS (list->field, ms->c_value);
|
||||
@ -2102,8 +2102,8 @@ coff_read_enum_type (int index, int length, int lastsym,
|
||||
memset (sym, 0, sizeof (struct symbol));
|
||||
|
||||
SYMBOL_SET_LINKAGE_NAME (sym,
|
||||
obsavestring (name, strlen (name),
|
||||
&objfile->objfile_obstack));
|
||||
obstack_copy0 (&objfile->objfile_obstack,
|
||||
name, strlen (name)));
|
||||
SYMBOL_CLASS (sym) = LOC_CONST;
|
||||
SYMBOL_DOMAIN (sym) = VAR_DOMAIN;
|
||||
SYMBOL_VALUE (sym) = ms->c_value;
|
||||
|
Reference in New Issue
Block a user