]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Don't let GDB_PATH be "" if no GDB is found at configure time, as this causes
authorJulian Seward <jseward@acm.org>
Mon, 17 Nov 2008 00:20:45 +0000 (00:20 +0000)
committerJulian Seward <jseward@acm.org>
Mon, 17 Nov 2008 00:20:45 +0000 (00:20 +0000)
any attempts to attach a gdb to the process to fail in a confusing way.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8772

configure.in
coregrind/m_main.c

index 749fffa9d4ad2d81164e63a92ed121ec4b9d9b0c..74c9b64111d92a5faa6359e645e6b6c4035a25ed 100644 (file)
@@ -76,7 +76,7 @@ fi
 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
index 4436d11990c178e16c3ca6a2b6aee97172bfeaae..47f1e0fd5a8bd838f67cafdad72d0d55d5d9ef4b 100644 (file)
@@ -211,11 +211,7 @@ 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;