]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Give a better help message for gdbserver when VALGRIND_LIB
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Thu, 1 Dec 2011 19:44:34 +0000 (19:44 +0000)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Thu, 1 Dec 2011 19:44:34 +0000 (19:44 +0000)
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

coregrind/m_gdbserver/remote-utils.c

index d1ae548e951c2ca46c52851eabfd4dc36d443c2f..c0062950b9f254cb2e34e820768aa6daeeca4554 100644 (file)
@@ -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)
       );