aboutsummaryrefslogtreecommitdiff
path: root/gdb/symfile.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/symfile.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/symfile.c')
-rw-r--r--gdb/symfile.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c
index c55cb03..7461ed6 100644
--- a/gdb/symfile.c
+++ b/gdb/symfile.c
@@ -2750,8 +2750,7 @@ allocate_symtab (char *filename, struct objfile *objfile)
&objfile->objfile_obstack);
symtab->fullname = NULL;
symtab->language = deduce_language_from_filename (filename);
- symtab->debugformat = obsavestring ("unknown", 7,
- &objfile->objfile_obstack);
+ symtab->debugformat = "unknown";
/* Hook it to the objfile it comes from */