aboutsummaryrefslogtreecommitdiff
path: root/gdb/mdebugread.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2009-11-05 19:53:04 +0000
committerTom Tromey <tromey@redhat.com>2009-11-05 19:53:04 +0000
commit1c9e835890dbd86ed06acc2820fd80fc586a3e5d (patch)
tree99557f0fa749f2a3f8d15dbc315642254c6c50b7 /gdb/mdebugread.c
parentddbb8a31d5f6d13c91a416e13f6ad11ac6604102 (diff)
downloadgdb-1c9e835890dbd86ed06acc2820fd80fc586a3e5d.zip
gdb-1c9e835890dbd86ed06acc2820fd80fc586a3e5d.tar.gz
gdb-1c9e835890dbd86ed06acc2820fd80fc586a3e5d.tar.bz2
* symtab.h (SYMBOL_SET_LINKAGE_NAME): Update comment.
* symfile.c (allocate_symtab): Don't use obsavestring on a constant string. * stabsread.c (define_symbol): Don't use obsavestring on a constant string. * mdebugread.c (parse_type): Don't use obsavestring on a constant string. (new_symtab): Likewise. * elfread.c (elf_symtab_read): Don't use obsavestring on a constant string.
Diffstat (limited to 'gdb/mdebugread.c')
-rw-r--r--gdb/mdebugread.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/gdb/mdebugread.c b/gdb/mdebugread.c
index aac82e9..7d29b97 100644
--- a/gdb/mdebugread.c
+++ b/gdb/mdebugread.c
@@ -1746,12 +1746,10 @@ parse_type (int fd, union aux_ext *ax, unsigned int aux_index, int *bs,
TYPE_NFIELDS (tp) = 2;
TYPE_FIELDS (tp) = ((struct field *)
TYPE_ALLOC (tp, 2 * sizeof (struct field)));
- TYPE_FIELD_NAME (tp, 0) = obsavestring ("Low", strlen ("Low"),
- &current_objfile->objfile_obstack);
+ TYPE_FIELD_NAME (tp, 0) = "Low";
TYPE_LOW_BOUND (tp) = AUX_GET_DNLOW (bigend, ax);
ax++;
- TYPE_FIELD_NAME (tp, 1) = obsavestring ("High", strlen ("High"),
- &current_objfile->objfile_obstack);
+ TYPE_FIELD_NAME (tp, 1) = "High";
TYPE_HIGH_BOUND (tp) = AUX_GET_DNHIGH (bigend, ax);
ax++;
}
@@ -4680,8 +4678,7 @@ new_symtab (char *name, int maxlines, struct objfile *objfile)
BLOCKVECTOR_BLOCK (BLOCKVECTOR (s), GLOBAL_BLOCK);
s->free_code = free_linetable;
- s->debugformat = obsavestring ("ECOFF", 5,
- &objfile->objfile_obstack);
+ s->debugformat = "ECOFF";
return (s);
}