|
From: <sv...@va...> - 2008-11-17 00:20:50
|
Author: sewardj
Date: 2008-11-17 00:20:45 +0000 (Mon, 17 Nov 2008)
New Revision: 8772
Log:
Don't let GDB_PATH be "" if no GDB is found at configure time, as this causes
any attempts to attach a gdb to the process to fail in a confusing way.
Modified:
trunk/configure.in
trunk/coregrind/m_main.c
Modified: trunk/configure.in
===================================================================
--- trunk/configure.in 2008-11-16 23:25:43 UTC (rev 8771)
+++ trunk/configure.in 2008-11-17 00:20:45 UTC (rev 8772)
@@ -76,7 +76,7 @@
AC_PATH_PROG(PERL, perl)
# figure out where gdb lives
-AC_PATH_PROG(GDB, gdb)
+AC_PATH_PROG(GDB, gdb, "/no/gdb/was/found/at/configure/time")
AC_DEFINE_UNQUOTED(GDB_PATH, "$GDB", [path to GDB])
# some older automake's don't have it so try something on our own
Modified: trunk/coregrind/m_main.c
===================================================================
--- trunk/coregrind/m_main.c 2008-11-16 23:25:43 UTC (rev 8771)
+++ trunk/coregrind/m_main.c 2008-11-17 00:20:45 UTC (rev 8772)
@@ -211,11 +211,7 @@
" 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;
|