|
From: <sv...@va...> - 2014-07-25 20:46:14
|
Author: philippe
Date: Fri Jul 25 20:46:01 2014
New Revision: 14192
Log:
Have m_addrinfo.c giving more details about an address in a text segment
(using a fake 'one address' stack trace).
This a.o. can be used with the gdbsrv 'monitor v.info location 0x.....'
to compare gdb and valgrind address to source mapping.
Any tool that use pub_tool_addrinfo.h will also better descrive
text addresses.
No impact on tests, as there is no test testing 'segment' address
description :(
Modified:
trunk/coregrind/m_addrinfo.c
Modified: trunk/coregrind/m_addrinfo.c
==============================================================================
--- trunk/coregrind/m_addrinfo.c (original)
+++ trunk/coregrind/m_addrinfo.c Fri Jul 25 20:46:01 2014
@@ -433,6 +433,11 @@
VG_(pp_SectKind)(ai->Addr.SectKind.kind),
ai->Addr.SectKind.objname,
xpost );
+ if (ai->Addr.SectKind.kind == Vg_SectText) {
+ /* To better describe the address in a text segment,
+ pp a dummy stacktrace made of this single address. */
+ VG_(pp_StackTrace)( &a, 1 );
+ }
break;
default:
|