summaryrefslogtreecommitdiff
path: root/gdb/stabsread.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2009-11-05 19:53:03 +0000
committerTom Tromey <tromey@redhat.com>2009-11-05 19:53:03 +0000
commit85835ca119632912f4197a5bb2738164f7b21330 (patch)
treecc459477c990e87f8d43d8b6a9eaad70c8690ded /gdb/stabsread.c
parent8e8dba97b747f799b01f4470dc2ee989b4bc879b (diff)
downloadgdb-85835ca119632912f4197a5bb2738164f7b21330.tar.gz
* 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 e62bb15ad3b..274fe1a6c3e 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 '_':