|
From: <sv...@va...> - 2011-09-29 14:31:28
|
Author: florian
Date: 2011-09-29 15:26:38 +0100 (Thu, 29 Sep 2011)
New Revision: 12064
Log:
Fix a regression (none/tests/cmdline[12]) which was introduced
by r12063.
VG_(clo_vgdb_prefix) was used before it was initialized.
Modified:
trunk/coregrind/m_main.c
Modified: trunk/coregrind/m_main.c
===================================================================
--- trunk/coregrind/m_main.c 2011-09-29 03:03:45 UTC (rev 12063)
+++ trunk/coregrind/m_main.c 2011-09-29 14:26:38 UTC (rev 12064)
@@ -100,8 +100,10 @@
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 @@
/* '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)
|