diff options
author | Tom Tromey <tromey@redhat.com> | 2009-11-05 19:53:04 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2009-11-05 19:53:04 +0000 |
commit | 1c9e835890dbd86ed06acc2820fd80fc586a3e5d (patch) | |
tree | 99557f0fa749f2a3f8d15dbc315642254c6c50b7 /gdb/elfread.c | |
parent | ddbb8a31d5f6d13c91a416e13f6ad11ac6604102 (diff) | |
download | gdb-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/elfread.c')
-rw-r--r-- | gdb/elfread.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/elfread.c b/gdb/elfread.c index 131d7d2..29b7c0c 100644 --- a/gdb/elfread.c +++ b/gdb/elfread.c @@ -231,8 +231,9 @@ elf_symtab_read (struct objfile *objfile, int type, /* If filesym is nonzero, it points to a file symbol, but we haven't seen any section info for it yet. */ asymbol *filesym = 0; - /* Name of filesym, as saved on the objfile_obstack. */ - char *filesymname = obsavestring ("", 0, &objfile->objfile_obstack); + /* Name of filesym. This is either a constant string or is saved on + the objfile's obstack. */ + char *filesymname = ""; struct dbx_symfile_info *dbx = objfile->deprecated_sym_stab_info; int stripped = (bfd_get_symcount (objfile->obfd) == 0); |