]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix 64-bit uncleanness in VG_(get_bbs_translated)/VG_(get_bbs_discarded_or_dumped) ..
authorJulian Seward <jseward@acm.org>
Wed, 4 Jan 2023 16:12:21 +0000 (17:12 +0100)
committerJulian Seward <jseward@acm.org>
Wed, 4 Jan 2023 16:12:21 +0000 (17:12 +0100)
.. and some debug printing associated with them.  I don't think this affects
anything apart from debug printing.  Noticed when running a x86 (32-bit)
Firefox build.

coregrind/m_translate.c
coregrind/m_transtab.c
coregrind/pub_core_transtab.h

index 60d5a05c8662e9cc232239eaebc3f9b5c707d90a..8ae06d2a67fa966e9a365a8ce201b6b0b6b2b6fd 100644 (file)
@@ -1597,7 +1597,7 @@ Bool VG_(translate) ( ThreadId tid,
       Bool ok = VG_(get_fnname_w_offset)(ep, addr, &fnname);
       if (!ok) fnname = "UNKNOWN_FUNCTION";
       VG_(printf)(
-         "==== SB %u (evchecks %llu) [tid %u] 0x%lx %s %s%c0x%lx\n",
+         "==== SB %llu (evchecks %llu) [tid %u] 0x%lx %s %s%c0x%lx\n",
          VG_(get_bbs_translated)(), bbs_done, tid, addr,
          fnname, objname, objoff >= 0 ? '+' : '-', 
          (UWord)(objoff >= 0 ? objoff : -objoff)
index 09a3da02ba3059befbafa1854a72c441f104eb92..384461289d07c62b243f4168a275e54e124f18b4 100644 (file)
@@ -2664,12 +2664,12 @@ static Double safe_idiv( ULong a, ULong b )
    return (b == 0 ? 0 : (Double)a / (Double)b);
 }
 
-UInt VG_(get_bbs_translated) ( void )
+ULong VG_(get_bbs_translated) ( void )
 {
    return n_in_count;
 }
 
-UInt VG_(get_bbs_discarded_or_dumped) ( void )
+ULong VG_(get_bbs_discarded_or_dumped) ( void )
 {
    return n_disc_count + n_dump_count;
 }
index 1470b7afbe938f611b6586ed91d233ecb3ccedea..6cc11f65806cfeadce2654437ae7b08ce6152fcd 100644 (file)
@@ -200,8 +200,8 @@ extern void VG_(discard_translations) ( Addr  start, ULong range,
 
 extern void VG_(print_tt_tc_stats) ( void );
 
-extern UInt VG_(get_bbs_translated) ( void );
-extern UInt VG_(get_bbs_discarded_or_dumped) ( void );
+extern ULong VG_(get_bbs_translated) ( void );
+extern ULong VG_(get_bbs_discarded_or_dumped) ( void );
 
 /* Add to / search the auxiliary, small, unredirected translation
    table. */