From 4027cc76a23eab8dbb502dd49f35007d3fd86ce3 Mon Sep 17 00:00:00 2001 From: Julian Seward Date: Tue, 20 Nov 2007 21:38:14 +0000 Subject: [PATCH] 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 --- coregrind/m_main.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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) -- 2.47.2