|
From: <sv...@va...> - 2011-08-17 21:28:11
|
Author: sewardj
Date: 2011-08-17 22:23:21 +0100 (Wed, 17 Aug 2011)
New Revision: 11987
Log:
Improvements to debug printing with -v -v. (Tom Hughes, to...@co...)
Modified:
trunk/coregrind/m_redir.c
Modified: trunk/coregrind/m_redir.c
===================================================================
--- trunk/coregrind/m_redir.c 2011-08-16 22:31:45 UTC (rev 11986)
+++ trunk/coregrind/m_redir.c 2011-08-17 21:23:21 UTC (rev 11987)
@@ -749,6 +749,11 @@
if (old->becTag != 0 && act.becTag != 0 && old->becTag == act.becTag) {
/* the replacements are behaviourally equivalent, so we can
safely ignore this conflict, and not add the new one. */
+ if (VG_(clo_verbosity) > 2) {
+ VG_(message)(Vg_UserMsg, "Ignoring duplicate redirection:\n");
+ show_active( " old: ", old);
+ show_active( " new: ", &act);
+ }
} else {
what = "new redirection conflicts with existing -- ignoring it";
goto bad;
@@ -772,6 +777,10 @@
"redir_new_DebugInfo(from_addr)");
VG_(discard_translations)( (Addr64)act.to_addr, 1,
"redir_new_DebugInfo(to_addr)");
+ if (VG_(clo_verbosity) > 2) {
+ VG_(message)(Vg_UserMsg, "Adding active redirection:\n");
+ show_active( " new: ", &act);
+ }
}
return;
|