aboutsummaryrefslogtreecommitdiff
path: root/gdb/stabsread.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/stabsread.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/stabsread.c')
-rw-r--r--gdb/stabsread.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/gdb/stabsread.c b/gdb/stabsread.c
index e62bb15..274fe1a 100644
--- a/gdb/stabsread.c
+++ b/gdb/stabsread.c
@@ -673,18 +673,14 @@ define_symbol (CORE_ADDR valu, char *string, int desc, int type,
switch (string[1])
{
case 't':
- SYMBOL_SET_LINKAGE_NAME
- (sym, obsavestring ("this", strlen ("this"),
- &objfile->objfile_obstack));
+ SYMBOL_SET_LINKAGE_NAME (sym, "this");
break;
case 'v': /* $vtbl_ptr_type */
goto normal;
case 'e':
- SYMBOL_SET_LINKAGE_NAME
- (sym, obsavestring ("eh_throw", strlen ("eh_throw"),
- &objfile->objfile_obstack));
+ SYMBOL_SET_LINKAGE_NAME (sym, "eh_throw");
break;
case '_':