|
From: <sv...@va...> - 2008-07-09 12:43:33
|
Author: bart
Date: 2008-07-09 13:43:35 +0100 (Wed, 09 Jul 2008)
New Revision: 8409
Log:
Print section type and name as a last resort in case the other allocation context detection attempts failed.
Modified:
trunk/drd/drd_error.c
Modified: trunk/drd/drd_error.c
===================================================================
--- trunk/drd/drd_error.c 2008-07-09 12:42:08 UTC (rev 8408)
+++ trunk/drd/drd_error.c 2008-07-09 12:43:35 UTC (rev 8409)
@@ -134,7 +134,21 @@
}
else
{
- VG_(message)(Vg_UserMsg, "Allocation context: unknown.");
+ char sect_name[64];
+ VgSectKind sect_kind;
+
+ sect_kind = VG_(seginfo_sect_kind)(sect_name, sizeof(sect_name), dri->addr);
+ if (sect_kind != Vg_SectUnknown)
+ {
+ VG_(message)(Vg_UserMsg,
+ "Allocation context: %s section of %s",
+ VG_(pp_SectKind)(sect_kind),
+ sect_name);
+ }
+ else
+ {
+ VG_(message)(Vg_UserMsg, "Allocation context: unknown.");
+ }
}
if (s_drd_show_conflicting_segments)
{
|