diff options
author | Tom Tromey <tromey@redhat.com> | 2009-11-18 16:28:42 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2009-11-18 16:28:42 +0000 |
commit | 72dcaf823ddd60a00635876657ba9233935a2256 (patch) | |
tree | 020215a94117c91de3e406094b80bd1d15cf3f92 /gdb/symtab.c | |
parent | ada65aa37709003cf557b2b3e7671e96b6c921a5 (diff) | |
download | gdb-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.c | 2 |
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; |