From 7a897aa86d6d534f53fdf851ff2091066435039e Mon Sep 17 00:00:00 2001 From: Julian Seward Date: Mon, 9 Apr 2007 22:24:57 +0000 Subject: [PATCH] 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. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6698 --- coregrind/m_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/coregrind/m_main.c b/coregrind/m_main.c index e9b4400bb1..80a6ebd58d 100644 --- a/coregrind/m_main.c +++ b/coregrind/m_main.c @@ -1059,6 +1059,7 @@ void show_BB_profile ( BBProfEntry tops[], UInt n_tops, ULong score_total ) 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); -- 2.47.2