|
From: <sv...@va...> - 2005-09-23 12:49:38
|
Author: sewardj
Date: 2005-09-23 13:49:32 +0100 (Fri, 23 Sep 2005)
New Revision: 4733
Log:
Fix argv printing for XML.
Modified:
branches/ASPACEM/coregrind/m_main.c
Modified: branches/ASPACEM/coregrind/m_main.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- branches/ASPACEM/coregrind/m_main.c 2005-09-23 12:22:22 UTC (rev 4732=
)
+++ branches/ASPACEM/coregrind/m_main.c 2005-09-23 12:49:32 UTC (rev 4733=
)
@@ -1543,21 +1543,28 @@
}
VG_(message)(Vg_UserMsg, "");
VG_(message)(Vg_UserMsg, "<args>");
+
VG_(message)(Vg_UserMsg, " <vargv>");
+ if (VG_(name_of_launcher))
+ VG_(message)(Vg_UserMsg, " <exe>%t</exe>",=20
+ VG_(name_of_launcher));
for (i =3D 0; i < VG_(args_for_valgrind).used; i++) {
- HChar* tag =3D i=3D=3D0 ? "exe" : "arg";
VG_(message)(Vg_UserMsg,=20
- " <%s>%t</%s>",=20
- tag, VG_(args_for_valgrind).strs[i], tag);
+ " <arg>%t</arg>",=20
+ VG_(args_for_valgrind).strs[i]);
}
VG_(message)(Vg_UserMsg, " </vargv>");
+
VG_(message)(Vg_UserMsg, " <argv>");
+ if (VG_(args_the_exename))
+ VG_(message)(Vg_UserMsg, " <exe>%t</exe>",=20
+ VG_(args_the_exename));
for (i =3D 0; i < VG_(args_for_client).used; i++) {
- HChar* tag =3D i=3D=3D0 ? "exe" : "arg";
- VG_(message)(Vg_UserMsg, " <%s>%t</%s>",=20
- tag, VG_(args_for_client).strs[i], tag=
);
+ VG_(message)(Vg_UserMsg, " <arg>%t</arg>",=20
+ VG_(args_for_client).strs[i]);
}
VG_(message)(Vg_UserMsg, " </argv>");
+
VG_(message)(Vg_UserMsg, "</args>");
}
=20
|