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)


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Valgrind-developers mailing list
Valgrind-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-developers

Reply via email to