That is, both the name of the environment variable and its value
are given.
-* The program and args being run.
-
- <argv>
- <exe>TEXT</exe>
- <arg>TEXT</arg> (zero or more of)
- </argv>
+* The program and args: first those pertaining to Valgrind itself, and
+ then those pertaining to the program to be run under Valgrind (the
+ client):
+
+ <args>
+ <vargv>
+ <exe>TEXT</exe>
+ <arg>TEXT</arg> (zero or more of)
+ </vargv>
+ <argv>
+ <exe>TEXT</exe>
+ <arg>TEXT</arg> (zero or more of)
+ </argv>
+ </args>
* The following, indicating that the program has now started:
val ? val : "");
}
VG_(message)(Vg_UserMsg, "");
- VG_(message)(Vg_UserMsg, "<argv>");
+ VG_(message)(Vg_UserMsg, "<args>");
+ VG_(message)(Vg_UserMsg, " <vargv>");
+ for (i = 0; i < vg_argc; i++) {
+ HChar* tag = i==0 ? "exe" : "arg";
+ VG_(message)(Vg_UserMsg, " <%s>%s</%s>",
+ tag, vg_argv[i], tag);
+ }
+ VG_(message)(Vg_UserMsg, " </vargv>");
+ VG_(message)(Vg_UserMsg, " <argv>");
for (i = 0; i < VG_(client_argc); i++) {
HChar* tag = i==0 ? "exe" : "arg";
- VG_(message)(Vg_UserMsg, " <%s>%s</%s>",
+ VG_(message)(Vg_UserMsg, " <%s>%s</%s>",
tag, VG_(client_argv)[i], tag);
}
- VG_(message)(Vg_UserMsg, "</argv>");
+ VG_(message)(Vg_UserMsg, " </argv>");
+ VG_(message)(Vg_UserMsg, "</args>");
}
if (VG_(clo_verbosity) > 1) {