aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarfread.c
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1992-06-25 19:10:49 +0000
committerFred Fish <fnf@specifix.com>1992-06-25 19:10:49 +0000
commit50e0dc4198cd5a873deeae34cf9718e805049693 (patch)
treeea0417dd264644957538ae248647eeee87b85ccf /gdb/dwarfread.c
parent65967d33edcbb41cc77c35721cdf7698f38748c9 (diff)
downloadgdb-50e0dc4198cd5a873deeae34cf9718e805049693.zip
gdb-50e0dc4198cd5a873deeae34cf9718e805049693.tar.gz
gdb-50e0dc4198cd5a873deeae34cf9718e805049693.tar.bz2
* mipsread.c: Pass NULL name pointer to init_type, not 0.
* gdbtypes.c (init_type): Use copy of typename on type_obstack. * dwarfread.c (enum_type): Save enum names on type_obstack. * dwarfread.c (struct_type): Save member name on type_obstack. * symtab.c (_initialize_symtab): Fix misspelling. * regex.c (store_jump, insert_jump): Return void.
Diffstat (limited to 'gdb/dwarfread.c')
-rw-r--r--gdb/dwarfread.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gdb/dwarfread.c b/gdb/dwarfread.c
index eb120bc..3c7c201 100644
--- a/gdb/dwarfread.c
+++ b/gdb/dwarfread.c
@@ -853,7 +853,9 @@ struct_type (dip, thisdie, enddie, objfile)
new -> next = list;
list = new;
/* Save the data. */
- list -> field.name = savestring (mbr.at_name, strlen (mbr.at_name));
+ list -> field.name =
+ obsavestring (mbr.at_name, strlen (mbr.at_name),
+ &objfile -> type_obstack);
list -> field.type = decode_die_type (&mbr);
list -> field.bitpos = 8 * locval (mbr.at_location);
/* Handle bit fields. */
@@ -1440,7 +1442,8 @@ enum_type (dip, objfile)
target_to_host (scan, TARGET_FT_LONG_SIZE (objfile), GET_SIGNED,
objfile);
scan += TARGET_FT_LONG_SIZE (objfile);
- list -> field.name = savestring (scan, strlen (scan));
+ list -> field.name = obsavestring (scan, strlen (scan),
+ &objfile -> type_obstack);
scan += strlen (scan) + 1;
nfields++;
/* Handcraft a new symbol for this enum member. */