|
From: <sv...@va...> - 2007-04-09 22:25:00
|
Author: sewardj
Date: 2007-04-09 23:24:57 +0100 (Mon, 09 Apr 2007)
New Revision: 6698
Log:
When doing 'demo' translations for --profile-flags=, make at least
some attempt to discard existing translations first. Otherwise
Cachegrind (rightly) asserts on the basis that it is seeing duplicate
translation requests for the same entry point.
Modified:
trunk/coregrind/m_main.c
Modified: trunk/coregrind/m_main.c
===================================================================
--- trunk/coregrind/m_main.c 2007-04-07 14:46:45 UTC (rev 6697)
+++ trunk/coregrind/m_main.c 2007-04-09 22:24:57 UTC (rev 6698)
@@ -1059,6 +1059,7 @@
score_cumul, buf_cumul,
score_here, buf_here, tops[r].addr, name );
VG_(printf)("\n");
+ VG_(discard_translations)(tops[r].addr, 1, "bb profile");
VG_(translate)(0, tops[r].addr, True, VG_(clo_profile_flags), 0, True);
VG_(printf)("=-=-=-=-=-=-=-=-=-=-=-=-=-= end BB rank %d "
"=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n", r);
|