|
From: Josef W. <Jos...@gm...> - 2005-10-26 15:01:00
|
Hi,
I invested quite some time in looking why my configure script does
not detect the version of Valgrind SVN correctly. I use
vg_version=`$prefix/bin/valgrind --version`
case "${vg_version}" in
valgrind-3.1.*)
...
This worked since ever. But VG 3.1.SVN now dumps the
version to stderr, thus vg_version stays empty.
Can you change "valgrind --version" to dump the version string
to stdout again, please? Patch attached.
Josef
--- coregrind/m_main.c (Revision 4968)
+++ coregrind/m_main.c (Arbeitskopie)
@@ -998,6 +998,8 @@
vg_assert(str);
if (VG_STREQ(str, "--version")) {
+ // Ensure the version string goes to stdout
+ VG_(clo_log_fd) = 1;
VG_(printf)("valgrind-" VERSION "\n");
VG_(exit)(0);
|
|
From: Nicholas N. <nj...@cs...> - 2005-10-26 16:18:48
|
On Wed, 26 Oct 2005, Josef Weidendorfer wrote: > Can you change "valgrind --version" to dump the version string > to stdout again, please? Patch attached. Done, thanks for the patch. I added a regression test so this problem should not return. Nick |