|
From: <sv...@va...> - 2012-05-03 21:09:59
|
philippe 2012-05-03 22:09:51 +0100 (Thu, 03 May 2012)
New Revision: 12552
Log:
Improve m_redir.c debug trace by adding filename.
Many objects (shared or non shared) have no soname.
In such case, showing the filename clarifies where the
redir spec is coming from.
Modified files:
trunk/coregrind/m_redir.c
Modified: trunk/coregrind/m_redir.c (+9 -5)
===================================================================
--- trunk/coregrind/m_redir.c 2012-05-03 02:39:45 +01:00 (rev 12551)
+++ trunk/coregrind/m_redir.c 2012-05-03 22:09:51 +01:00 (rev 12552)
@@ -1547,11 +1547,15 @@
VG_(message)(Vg_DebugMsg, "<<\n");
VG_(message)(Vg_DebugMsg, " ------ REDIR STATE %s ------\n", who);
for (ts = topSpecs; ts; ts = ts->next) {
- VG_(message)(Vg_DebugMsg,
- " TOPSPECS of soname %s\n",
- ts->seginfo
- ? (HChar*)VG_(DebugInfo_get_soname)(ts->seginfo)
- : "(hardwired)" );
+ if (ts->seginfo)
+ VG_(message)(Vg_DebugMsg,
+ " TOPSPECS of soname %s filename %s\n",
+ (HChar*)VG_(DebugInfo_get_soname)(ts->seginfo),
+ (HChar*)VG_(DebugInfo_get_filename)(ts->seginfo));
+ else
+ VG_(message)(Vg_DebugMsg,
+ " TOPSPECS of soname (hardwired)\n");
+
for (sp = ts->specs; sp; sp = sp->next)
show_spec(" ", sp);
}
|