]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Slightly reorder the preamble-printing order, and also print the CPU arch/subarch...
authorJulian Seward <jseward@acm.org>
Wed, 16 Nov 2005 03:51:02 +0000 (03:51 +0000)
committerJulian Seward <jseward@acm.org>
Wed, 16 Nov 2005 03:51:02 +0000 (03:51 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5142

coregrind/m_main.c

index 46ce80d551111854dfcb31f240e6d7067d50156e..1ee861f3031ba19e4c3ff0db7a73b0387d18b08a 100644 (file)
@@ -1596,10 +1596,10 @@ static void print_preamble(Bool logging_to_fd, const char* toolname)
 
    if (VG_(clo_verbosity) > 1) {
       SysRes fd;
+      VexArch vex_arch;
+      VexArchInfo vex_archinfo;
       if (!logging_to_fd)
          VG_(message)(Vg_DebugMsg, "");
-      VG_(message)(Vg_DebugMsg, "Valgrind library directory: %s", VG_(libdir));
-
       VG_(message)(Vg_DebugMsg, "Command line");
       if (VG_(args_the_exename))
          VG_(message)(Vg_DebugMsg, "   %s", VG_(args_the_exename));
@@ -1629,6 +1629,12 @@ static void print_preamble(Bool logging_to_fd, const char* toolname)
          VG_(close)(fd.val);
 #        undef BUF_LEN
       }
+
+      VG_(machine_get_VexArchInfo)( &vex_arch, &vex_archinfo );
+      VG_(message)(Vg_DebugMsg, "Arch and subarch: %s, %s",
+                                LibVEX_ppVexArch   ( vex_arch ),
+                                LibVEX_ppVexSubArch( vex_archinfo.subarch ) );
+      VG_(message)(Vg_DebugMsg, "Valgrind library directory: %s", VG_(libdir));
    }
 }