From: Bart Van Assche Date: Tue, 11 Oct 2011 18:50:14 +0000 (+0000) Subject: Emit RUNNING earlier X-Git-Tag: svn/VALGRIND_3_7_0~103 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=337b3b552561af626bc024401efc4301ef7441c3;p=thirdparty%2Fvalgrind.git Emit RUNNING earlier git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12136 --- diff --git a/coregrind/m_main.c b/coregrind/m_main.c index 1981321c88..a93a78a039 100644 --- a/coregrind/m_main.c +++ b/coregrind/m_main.c @@ -1968,6 +1968,17 @@ Int valgrind_main ( Int argc, HChar **argv, HChar **envp ) vg_assert(change_ownership_v_c_OK); } + if (VG_(clo_xml)) { + HChar buf[50]; + VG_(elapsed_wallclock_time)(buf); + VG_(printf_xml)( "\n" + " RUNNING\n" + " \n" + "\n", + buf ); + VG_(printf_xml)( "\n" ); + } + //-------------------------------------------------------------- // Initialise the scheduler (phase 1) [generates tid_main] // p: none, afaics @@ -2169,17 +2180,6 @@ Int valgrind_main ( Int argc, HChar **argv, HChar **envp ) //-------------------------------------------------------------- // Run! //-------------------------------------------------------------- - if (VG_(clo_xml)) { - HChar buf[50]; - VG_(elapsed_wallclock_time)(buf); - VG_(printf_xml)( "\n" - " RUNNING\n" - " \n" - "\n", - buf ); - VG_(printf_xml)( "\n" ); - } - VG_(debugLog)(1, "main", "Running thread 1\n"); /* As a result of the following call, the last thread standing