This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
FYI: fix java regression in symbol_set_names
- From: Tom Tromey <tromey at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Wed, 18 Nov 2009 09:28:24 -0700
- Subject: FYI: fix java regression in symbol_set_names
- Reply-to: tromey at redhat dot com
I'm checking this in.
This fixes the java regressions introduced by my memory-saving patch.
Built and regtested on x86-64 (compile farm).
I also ran the java tests locally, as they seem not to work on the
compile farm.
Tom
2009-11-18 Tom Tromey <tromey@redhat.com>
* symtab.c (symbol_set_names): Correctly set 'name' on symbol when
lookup name differs.
Index: symtab.c
===================================================================
RCS file: /cvs/src/src/gdb/symtab.c,v
retrieving revision 1.218
diff -u -r1.218 symtab.c
--- symtab.c 16 Nov 2009 18:40:23 -0000 1.218
+++ symtab.c 18 Nov 2009 16:26:46 -0000
@@ -676,7 +676,7 @@
(*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;