aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2009-11-18 16:28:42 +0000
committerTom Tromey <tromey@redhat.com>2009-11-18 16:28:42 +0000
commit72dcaf823ddd60a00635876657ba9233935a2256 (patch)
tree020215a94117c91de3e406094b80bd1d15cf3f92 /gdb/symtab.c
parentada65aa37709003cf557b2b3e7671e96b6c921a5 (diff)
downloadgdb-72dcaf823ddd60a00635876657ba9233935a2256.zip
gdb-72dcaf823ddd60a00635876657ba9233935a2256.tar.gz
gdb-72dcaf823ddd60a00635876657ba9233935a2256.tar.bz2
* symtab.c (symbol_set_names): Correctly set 'name' on symbol when
lookup name differs.
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r--gdb/symtab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c
index b512bf3..950be26 100644
--- a/gdb/symtab.c
+++ b/gdb/symtab.c
@@ -676,7 +676,7 @@ symbol_set_names (struct general_symbol_info *gsymbol,
(*slot)->demangled[0] = '\0';
}
- gsymbol->name = (*slot)->mangled;
+ gsymbol->name = (*slot)->mangled + lookup_len - len;
if ((*slot)->demangled[0] != '\0')
gsymbol->language_specific.cplus_specific.demangled_name
= (*slot)->demangled;