From: Julian Seward Date: Tue, 20 Nov 2007 21:38:14 +0000 (+0000) Subject: Followup to r7192: don't bork the compilation if GDB_PATH is not X-Git-Tag: svn/VALGRIND_3_3_0~97 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4027cc76a23eab8dbb502dd49f35007d3fd86ce3;p=thirdparty%2Fvalgrind.git Followup to r7192: don't bork the compilation if GDB_PATH is not defined (in config.h) git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7194 --- diff --git a/coregrind/m_main.c b/coregrind/m_main.c index 84d0953313..a7adbe8933 100644 --- a/coregrind/m_main.c +++ b/coregrind/m_main.c @@ -209,12 +209,18 @@ static void usage_NORETURN ( Bool debug_help ) " 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)