From: Julian Seward Date: Mon, 9 Apr 2007 22:24:57 +0000 (+0000) Subject: When doing 'demo' translations for --profile-flags=, make at least X-Git-Tag: svn/VALGRIND_3_3_0~287 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a897aa86d6d534f53fdf851ff2091066435039e;p=thirdparty%2Fvalgrind.git 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 --- 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);