From 51658535e79e914c1a9d1c9a6bd46db15ab6d7d3 Mon Sep 17 00:00:00 2001 From: Julian Seward Date: Wed, 16 Nov 2005 03:51:02 +0000 Subject: [PATCH] Slightly reorder the preamble-printing order, and also print the CPU arch/subarch detected. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5142 --- coregrind/m_main.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/coregrind/m_main.c b/coregrind/m_main.c index 46ce80d551..1ee861f303 100644 --- a/coregrind/m_main.c +++ b/coregrind/m_main.c @@ -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)); } } -- 2.47.2