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]

[RFA] c++/11734


Hi,

c++/11734 involves being unable to set a breakpoint at a method defined in a different CU from the class declaration. This regression occurs because the dwarf2_physname patch removes the use of DW_AT_MIPS_linkage_name.

[You might ask why this is. I refer you to c++/11734 for a more detailed explanation of how gdb "appeared" to work prior to the dwarf2_physname patch.]

The attached patch fixes this regression. While testing, I also noticed a related issue with overloaded methods defined in multiple CUs, and I've fixed that, too.

Questions/comments/concerns?

Keith

ChangeLog
2010-06-21  Keith Seitz  <keiths@redhat.com>

	c++/11734
	* linespec.c (decode_compound): If saved_arg is surrounded
	in single quotes, strip them.
	* psymtab.c (lookup_partial_symbol): If the search name
	contains overload information, expand any psymtabs that
	match the un-overoaded name.

testsuite/ChangeLog
2010-06-21  Keith Seitz  <keiths@redhat.com>

	c++/11734
	* gdb.cp/pr11734.exp: New test.
	* gdb.cp/pr11734-1.cc, gdb.cp/pr11734-2.cc, gdb.cp/pr11734-3.cc,
	  gdb.cp/pr11734-4.cc, gdb.cp/pr11734.h: New files.

Attachment: pr11734.patch
Description: Text document


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