|
From: <sv...@va...> - 2007-11-20 21:38:13
|
Author: sewardj
Date: 2007-11-20 21:38:14 +0000 (Tue, 20 Nov 2007)
New Revision: 7194
Log:
Followup to r7192: don't bork the compilation if GDB_PATH is not
defined (in config.h)
Modified:
trunk/coregrind/m_main.c
Modified: trunk/coregrind/m_main.c
===================================================================
--- trunk/coregrind/m_main.c 2007-11-20 19:59:51 UTC (rev 7193)
+++ trunk/coregrind/m_main.c 2007-11-20 21:38:14 UTC (rev 7194)
@@ -209,12 +209,18 @@
" tool's start-up message for more information.\n"
"\n";
+# if defined(GDB_PATH)
+ Char* gdb_path = GDB_PATH;
+# else
+ Char* gdb_path = "/no/gdb/was/found/at/configure/time";
+# endif
+
// Ensure the message goes to stdout
VG_(clo_log_fd) = 1;
vg_assert( !VG_(logging_to_socket) );
/* 'usage1' expects one char* argument */
- VG_(printf)(usage1, GDB_PATH);
+ VG_(printf)(usage1, gdb_path);
if (VG_(details).name) {
VG_(printf)(" user options for %s:\n", VG_(details).name);
if (VG_(needs).command_line_options)
|