|
From: <sv...@va...> - 2011-10-11 18:55:02
|
Author: bart
Date: 2011-10-11 19:50:14 +0100 (Tue, 11 Oct 2011)
New Revision: 12136
Log:
Emit <state>RUNNING</state> earlier
Modified:
trunk/coregrind/m_main.c
Modified: trunk/coregrind/m_main.c
===================================================================
--- trunk/coregrind/m_main.c 2011-10-11 18:49:35 UTC (rev 12135)
+++ trunk/coregrind/m_main.c 2011-10-11 18:50:14 UTC (rev 12136)
@@ -1968,6 +1968,17 @@
vg_assert(change_ownership_v_c_OK);
}
+ if (VG_(clo_xml)) {
+ HChar buf[50];
+ VG_(elapsed_wallclock_time)(buf);
+ VG_(printf_xml)( "<status>\n"
+ " <state>RUNNING</state>\n"
+ " <time>%pS</time>\n"
+ "</status>\n",
+ buf );
+ VG_(printf_xml)( "\n" );
+ }
+
//--------------------------------------------------------------
// Initialise the scheduler (phase 1) [generates tid_main]
// p: none, afaics
@@ -2169,17 +2180,6 @@
//--------------------------------------------------------------
// Run!
//--------------------------------------------------------------
- if (VG_(clo_xml)) {
- HChar buf[50];
- VG_(elapsed_wallclock_time)(buf);
- VG_(printf_xml)( "<status>\n"
- " <state>RUNNING</state>\n"
- " <time>%pS</time>\n"
- "</status>\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
|