From: Philippe Waroquiers Date: Thu, 1 Dec 2011 19:44:34 +0000 (+0000) Subject: Give a better help message for gdbserver when VALGRIND_LIB X-Git-Tag: svn/VALGRIND_3_8_0~575 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bf3801280da37bbc22b447dac5f4267132f99c0c;p=thirdparty%2Fvalgrind.git Give a better help message for gdbserver when VALGRIND_LIB is set. This ensures a correct help msg is given when the valgrind installation is moved, and VALGRIND_LIB is then set to the new valgrind lib location. Note it does not improve the help msg when valgrind is run "in place" (e.g. when using vg-in-place). (Patch from Paul Pluzhnikov). git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12278 --- diff --git a/coregrind/m_gdbserver/remote-utils.c b/coregrind/m_gdbserver/remote-utils.c index d1ae548e95..c0062950b9 100644 --- a/coregrind/m_gdbserver/remote-utils.c +++ b/coregrind/m_gdbserver/remote-utils.c @@ -269,7 +269,7 @@ void remote_open (char *name) "don't want to do, unless you know exactly what you're doing,\n" "or are doing some strange experiment):\n" " %s/../../bin/vgdb --pid=%d%s%s ...command...\n", - VG_LIBDIR, + VG_(libdir), pid, (name_default ? "" : " --vgdb-prefix="), (name_default ? "" : name)); } @@ -282,7 +282,7 @@ void remote_open (char *name) "and then give GDB the following command\n" " target remote | %s/../../bin/vgdb --pid=%d%s%s\n", VG_(args_the_exename), - VG_LIBDIR, + VG_(libdir), pid, (name_default ? "" : " --vgdb-prefix="), (name_default ? "" : name) );