which is global, rather than passing it in with -D to the file that needed it.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1532
# figure out where gdb lives
AC_PATH_PROG(GDB, gdb)
+# autoheader tries to execute the 3rd string or something; I get warnings when
+# it's defined. So just leave it undefined. --njn 2002-Apr-18
+AC_DEFINE_UNQUOTED(GDB_PATH, "$GDB", "")
# some older automake's don't have it so try something on our own
ifdef([AM_PROG_AS],[AM_PROG_AS],
vg_intercept.o vg_libpthread.o vg_replace_malloc.o: CFLAGS += -fno-omit-frame-pointer
-vg_main.o: CFLAGS += -DWHERE_IS_GDB=@GDB@
#define TO_STRING2(x) #x
VG_(sprintf)(buf, "%s -nw /proc/%d/exe %d",
- TO_STRING(WHERE_IS_GDB), VG_(getpid)(), VG_(getpid)());
+ TO_STRING(GDB_PATH), VG_(getpid)(), VG_(getpid)());
VG_(message)(Vg_UserMsg, "starting GDB with cmd: %s", buf);
res = VG_(system)(buf);
if (res == 0) {