From: Julian Seward Date: Tue, 19 Jul 2005 12:39:11 +0000 (+0000) Subject: Show Valgrind's args too in the XML output. X-Git-Tag: svn/VALGRIND_3_0_0~135 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7cdf76a10b78885fe454ae33d6807b0968a9609d;p=thirdparty%2Fvalgrind.git Show Valgrind's args too in the XML output. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4183 --- diff --git a/README_XML_OUTPUT.txt b/README_XML_OUTPUT.txt index b6852c855f..60a239f025 100644 --- a/README_XML_OUTPUT.txt +++ b/README_XML_OUTPUT.txt @@ -142,12 +142,20 @@ following in sequence: That is, both the name of the environment variable and its value are given. -* The program and args being run. - - - TEXT - TEXT (zero or more of) - +* The program and args: first those pertaining to Valgrind itself, and + then those pertaining to the program to be run under Valgrind (the + client): + + + + TEXT + TEXT (zero or more of) + + + TEXT + TEXT (zero or more of) + + * The following, indicating that the program has now started: diff --git a/coregrind/m_main.c b/coregrind/m_main.c index 99e12370ca..acf024a666 100644 --- a/coregrind/m_main.c +++ b/coregrind/m_main.c @@ -1906,13 +1906,22 @@ static void process_cmd_line_options( UInt* client_auxv, const char* toolname ) val ? val : ""); } VG_(message)(Vg_UserMsg, ""); - VG_(message)(Vg_UserMsg, ""); + VG_(message)(Vg_UserMsg, ""); + VG_(message)(Vg_UserMsg, " "); + for (i = 0; i < vg_argc; i++) { + HChar* tag = i==0 ? "exe" : "arg"; + VG_(message)(Vg_UserMsg, " <%s>%s", + tag, vg_argv[i], tag); + } + VG_(message)(Vg_UserMsg, " "); + VG_(message)(Vg_UserMsg, " "); for (i = 0; i < VG_(client_argc); i++) { HChar* tag = i==0 ? "exe" : "arg"; - VG_(message)(Vg_UserMsg, " <%s>%s", + VG_(message)(Vg_UserMsg, " <%s>%s", tag, VG_(client_argv)[i], tag); } - VG_(message)(Vg_UserMsg, ""); + VG_(message)(Vg_UserMsg, " "); + VG_(message)(Vg_UserMsg, ""); } if (VG_(clo_verbosity) > 1) {