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++/12506


Hi,

This patch is an attempt to fix c++/12506. In that bug, gdb is unable to set a breakpoint in a method because the compiler has output different type dies for the declaration and the definition of the subprogram.

However, the compiler has specified DW_AT_specification for the method definition. This patch notices (and uses) this while computing the physname so that the two method signatures agree.

[as usual, tested on x86_64 linux, no regressions]

Keith

ChangeLog
2011-03-03  Keith Seitz <keiths@redhat.com>

	* dwarf2read.c (dwarf2_compute_name): If the DIE represents
	a method and the method has a specification DIE, use that
	DIE's type to compute the method signature.

testsuite/ChangeLog
2011-03-03  Keith Seitz  <keiths@redhat.com>

	* gdb.dwarf2/dw2-method-type-spec.S: New file.
	* gdb.dwarf2/dw2-method-type-spec.exp: New file.

Attachment: 12506.patch
Description: Text document


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