]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Notify the tool via tool_discard_basic_block_info() about translations
authorJulian Seward <jseward@acm.org>
Wed, 12 Oct 2005 10:51:01 +0000 (10:51 +0000)
committerJulian Seward <jseward@acm.org>
Wed, 12 Oct 2005 10:51:01 +0000 (10:51 +0000)
thrown away due to lack of space.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4908

coregrind/m_transtab.c

index 3710e1395419f711fb4121db9778bc60098b491c..94599a7cbaa4afe80b2e25d5651829c19fe7f7d0 100644 (file)
@@ -331,6 +331,11 @@ static void initialiseSector ( Int sno )
       for (i = 0; i < N_TTES_PER_SECTOR; i++) {
          if (sectors[sno].tt[i].status == InUse) {
             n_dump_osize += vge_osize(&sectors[sno].tt[i].vge);
+            /* Tell the tool too. */
+            if (VG_(needs).basic_block_discards) {
+               VG_TDICT_CALL( tool_discard_basic_block_info,
+                              sectors[sno].tt[i].vge );
+            }
          }
       }
       if (VG_(clo_verbosity) > 2)