aboutsummaryrefslogtreecommitdiff
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
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.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/symtab.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 3d98d1b..494e78e 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2009-11-18 Tom Tromey <tromey@redhat.com>
+
+ * symtab.c (symbol_set_names): Correctly set 'name' on symbol when
+ lookup name differs.
+
2009-11-18 Tristan Gingold <gingold@adacore.com>
* machoread.c (macho_oso_symfile): Fix typo. Add comments.
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;