From 9112db09262029f15cc9e8c77fc06b79b8148e8c Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Sun, 10 Mar 2013 18:04:00 +0000 Subject: gdb/ Fix entry-values in C++ across CUs. * dwarf2loc.c (call_site_to_target_addr) : Use lookup_minimal_symbol. Add a comment. * dwarf2read.c (read_call_site_scope) : Prefer DW_AT_linkage_name. gdb/testsuite/ Fix entry-values in C++ across CUs. * gdb.arch/amd64-tailcall-cxx.exp: New file. * gdb.arch/amd64-tailcall-cxx1.S: New file. * gdb.arch/amd64-tailcall-cxx1.cc: New file. * gdb.arch/amd64-tailcall-cxx2.S: New file. * gdb.arch/amd64-tailcall-cxx2.cc: New file. --- gdb/dwarf2loc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gdb/dwarf2loc.c') diff --git a/gdb/dwarf2loc.c b/gdb/dwarf2loc.c index 8a61ae6..f300df2 100644 --- a/gdb/dwarf2loc.c +++ b/gdb/dwarf2loc.c @@ -542,7 +542,9 @@ call_site_to_target_addr (struct gdbarch *call_site_gdbarch, struct minimal_symbol *msym; physname = FIELD_STATIC_PHYSNAME (call_site->target); - msym = lookup_minimal_symbol_text (physname, NULL); + + /* Handle both the mangled and demangled PHYSNAME. */ + msym = lookup_minimal_symbol (physname, NULL, NULL); if (msym == NULL) { msym = lookup_minimal_symbol_by_pc (call_site->pc - 1); -- cgit v1.1