]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
XML output futzing-around-with.
authorJulian Seward <jseward@acm.org>
Tue, 24 May 2005 14:21:45 +0000 (14:21 +0000)
committerJulian Seward <jseward@acm.org>
Tue, 24 May 2005 14:21:45 +0000 (14:21 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3794

README_XML_OUTPUT.txt
coregrind/m_errormgr.c
coregrind/vg_main.c

index b6865c96ebe5e84facf58c1a454be5b94df1e709..44714741c5da344b212c33ff1180a0292146ecd6 100644 (file)
@@ -328,7 +328,7 @@ Suppressions not mentioned were used zero times.
 
   <suppcounts>
      zero or more of
-        <supp> <count>INT</count> <name>TEXT</name> </supp>
+        <pair> <count>INT</count> <name>TEXT</name> </pair>
   </suppcounts>
 
 The <name> is as specified in the suppression name fields in .supp
index 260e4f5851858cf0cc5ef95b5a3aca4c9376ffc1..cb6d7313c1fb387d23665f5e1238748df073adb4 100644 (file)
@@ -648,6 +648,9 @@ static Bool show_used_suppressions ( void )
    Supp  *su;
    Bool  any_supp;
 
+   if (VG_(clo_xml))
+      VG_(message)(Vg_DebugMsg, "<suppcounts>");
+
    any_supp = False;
    for (su = suppressions; su != NULL; su = su->next) {
       if (su->count <= 0)
@@ -655,13 +658,16 @@ static Bool show_used_suppressions ( void )
       any_supp = True;
       if (VG_(clo_xml)) {
          VG_(message)(Vg_DebugMsg, 
-                      "<supp><count>%d</count><name>%s</name></supp>", 
+                      "  <pair><count>%d</count><name>%s</name></pair>", 
                       su->count, su->sname);
       } else {
          VG_(message)(Vg_DebugMsg, "supp: %4d %s", su->count, su->sname);
       }
    }
 
+   if (VG_(clo_xml))
+      VG_(message)(Vg_DebugMsg, "<suppcounts>");
+
    return any_supp;
 }
 
@@ -764,9 +770,9 @@ void VG_(show_error_counts_as_XML) ( void )
       if (err->count <= 0)
          continue;
       VG_(message)(
-         Vg_UserMsg, "  <pair><unique>0x%llx</unique>"
-                     "<count>%d</count></pair>",
-         Ptr_to_ULong(err), err->count
+         Vg_UserMsg, "  <pair><count>%d</count>"
+                     "<unique>0x%llx</unique></pair>",
+         err->count, Ptr_to_ULong(err)
       );
    }
    VG_(message)(Vg_UserMsg, "</errorcounts>");
index 5910e36fce1685c779c603b2dd806a0ba0fad63a..f577b3ee5ff414a14afb2cfa2f68155a282b58ad 100644 (file)
@@ -2025,6 +2025,7 @@ static void process_cmd_line_options( UInt* client_auxv, const char* toolname )
       VG_(message)(Vg_UserMsg, "");
       VG_(message)(Vg_UserMsg, "<pid>%d</pid>", VG_(getpid)());
       VG_(message)(Vg_UserMsg, "<ppid>%d</ppid>", VG_(getppid)());
+      VG_(message)(Vg_UserMsg, "<tool>%s</tool>", toolname);
       VG_(message)(Vg_UserMsg, "");
       VG_(message)(Vg_UserMsg, "<argv>");   
       for (i = 0; i < VG_(client_argc); i++)