aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.h
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/symtab.h
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/symtab.h')
-rw-r--r--gdb/symtab.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/symtab.h b/gdb/symtab.h
index acb8510..2bc3dd5 100644
--- a/gdb/symtab.h
+++ b/gdb/symtab.h
@@ -185,7 +185,8 @@ extern void symbol_init_language_specific (struct general_symbol_info *symbol,
/* Set just the linkage name of a symbol; do not try to demangle
it. Used for constructs which do not have a mangled name,
e.g. struct tags. Unlike SYMBOL_SET_NAMES, linkage_name must
- be terminated and already on the objfile's obstack. */
+ be terminated and either already on the objfile's obstack or
+ permanently allocated. */
#define SYMBOL_SET_LINKAGE_NAME(symbol,linkage_name) \
(symbol)->ginfo.name = (linkage_name)