]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix a regression (none/tests/cmdline[12]) which was introduced
authorFlorian Krohm <florian@eich-krohm.de>
Thu, 29 Sep 2011 14:26:38 +0000 (14:26 +0000)
committerFlorian Krohm <florian@eich-krohm.de>
Thu, 29 Sep 2011 14:26:38 +0000 (14:26 +0000)
by r12063.
VG_(clo_vgdb_prefix) was used before it was initialized.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12064

coregrind/m_main.c

index 49b2daf0ce4c5ce300f1072f204c60da6852eb9c..ceb852e8fa87543f84469d4fff23477124c4e85d 100644 (file)
@@ -100,8 +100,10 @@ static void print_all_stats ( void )
 
 static void usage_NORETURN ( Bool debug_help )
 {
-   /* 'usage1' contains a %s for the name of the GDB executable, which
-      must be supplied when it is VG_(printf)'d. */
+   /* 'usage1' contains a %s 
+      - for the name of the GDB executable
+      - for the name of vgdb's path prefix
+      which must be supplied when they are VG_(printf)'d. */
    Char* usage1 = 
 "usage: valgrind [options] prog-and-args\n"
 "\n"
@@ -257,7 +259,7 @@ static void usage_NORETURN ( Bool debug_help )
    /* 'usage1' expects two int, two char* argument, and one SizeT argument. */
    VG_(printf)(usage1, 
                VG_(clo_vgdb_error), gdb_path, VG_MIN_MALLOC_SZB,
-               VG_(clo_vgdb_poll), VG_(clo_vgdb_prefix)); 
+               VG_(clo_vgdb_poll), VG_(vgdb_prefix_default)()); 
    if (VG_(details).name) {
       VG_(printf)("  user options for %s:\n", VG_(details).name);
       if (VG_(needs).command_line_options)