This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

FYI: fix java regression in symbol_set_names


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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]