mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-01 20:12:01 +08:00
2004-02-07 Elena Zannoni <ezannoni@redhat.com>
* objfiles.h (struct objfile): Add objfile_obstack field. Remove type_obstack field. * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn, read_structure_scope read_enumeration, new_symbol): Replace type_obstack with objfile_obstack. * dwarfread.c (struct_type, enum_type): Ditto. * gdbtypes.c (alloc_type, alloc_type_instance, init_type) (lookup_fundamental_type): Ditto. * gdbtypes.h (TYPE_ALLOC): Ditto. * hpread.c (hpread_read_enum_type, hpread_read_function_type) (hpread_read_doc_function_type, hpread_read_struct_type) (fix_static_member_physnames, hpread_read_array_type) (hpread_read_subrange_type, hpread_type_lookup): Ditto. * jv-lang.c (java_lookup_class, type_from_class, type_from_class) (java_link_class_type): Ditto. * mdebugread.c (parse_type): Ditto. * objfiles.c (allocate_objfile, free_objfile): Ditto. * solib-sunos.c (solib_add_common_symbols): Ditto. * stabsread.c (define_symbol, read_type, read_member_functions, read_cpp_abbrev, read_one_struct_field): Ditto. * symfile.c (reread_symbols): Ditto. * symmisc.c (print_objfile_statistics): Ditto.
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
/* DWARF debugging format support for GDB.
|
||||
|
||||
Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
|
||||
2000, 2001, 2002, 2003 Free Software Foundation, Inc.
|
||||
2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
|
||||
|
||||
Written by Fred Fish at Cygnus Support. Portions based on dbxread.c,
|
||||
mipsread.c, coffread.c, and dwarfread.c from a Data General SVR4 gdb port.
|
||||
@ -968,7 +968,7 @@ struct_type (struct dieinfo *dip, char *thisdie, char *enddie,
|
||||
&& *dip->at_name != '~'
|
||||
&& *dip->at_name != '.')
|
||||
{
|
||||
TYPE_TAG_NAME (type) = obconcat (&objfile->type_obstack,
|
||||
TYPE_TAG_NAME (type) = obconcat (&objfile->objfile_obstack,
|
||||
"", "", dip->at_name);
|
||||
}
|
||||
/* Use whatever size is known. Zero is a valid size. We might however
|
||||
@ -1011,7 +1011,7 @@ struct_type (struct dieinfo *dip, char *thisdie, char *enddie,
|
||||
/* Save the data. */
|
||||
list->field.name =
|
||||
obsavestring (mbr.at_name, strlen (mbr.at_name),
|
||||
&objfile->type_obstack);
|
||||
&objfile->objfile_obstack);
|
||||
FIELD_TYPE (list->field) = decode_die_type (&mbr);
|
||||
FIELD_BITPOS (list->field) = 8 * locval (&mbr);
|
||||
FIELD_STATIC_KIND (list->field) = 0;
|
||||
@ -1670,7 +1670,7 @@ enum_type (struct dieinfo *dip, struct objfile *objfile)
|
||||
&& *dip->at_name != '~'
|
||||
&& *dip->at_name != '.')
|
||||
{
|
||||
TYPE_TAG_NAME (type) = obconcat (&objfile->type_obstack,
|
||||
TYPE_TAG_NAME (type) = obconcat (&objfile->objfile_obstack,
|
||||
"", "", dip->at_name);
|
||||
}
|
||||
if (dip->at_byte_size != 0)
|
||||
@ -1704,7 +1704,7 @@ enum_type (struct dieinfo *dip, struct objfile *objfile)
|
||||
objfile);
|
||||
scan += TARGET_FT_LONG_SIZE (objfile);
|
||||
list->field.name = obsavestring (scan, strlen (scan),
|
||||
&objfile->type_obstack);
|
||||
&objfile->objfile_obstack);
|
||||
scan += strlen (scan) + 1;
|
||||
nfields++;
|
||||
/* Handcraft a new symbol for this enum member. */
|
||||
|
Reference in New Issue
Block a user