* Makefile.in (GDBFLAGS): New variable.
authorDoug Evans <dje@google.com>
Fri, 11 Oct 2013 17:32:30 +0000 (17:32 +0000)
committerDoug Evans <dje@google.com>
Fri, 11 Oct 2013 17:32:30 +0000 (17:32 +0000)
(run): New rule.

gdb/ChangeLog
gdb/Makefile.in

index a600e159776b5161afa80e236bff1900eb69b093..322decc2bfb5b82ff2c727b511039ddb51070a72 100644 (file)
@@ -1,3 +1,8 @@
+2013-10-11  Doug Evans  <dje@google.com>
+
+       * Makefile.in (GDBFLAGS): New variable.
+       (run): New rule.
+
 2013-10-11  Joel Brobecker  <brobecker@adacore.com>
 
        * NEWS: Add entry documenting the new "-catch-assert" and
index 2aa813446f1d6f93f27bfd6bd6d6a37ec7d37f89..f13e5c656f813f37e3ecc7a283e4a8b03d2b41c2 100644 (file)
@@ -178,6 +178,9 @@ INTL_CFLAGS = @INCINTL@
 # Did the user give us a --with-gdb-datadir option?
 GDB_DATADIR = @GDB_DATADIR@
 
+# Flags to pass to gdb when invoked with "make run".
+GDBFLAGS =
+
 # Helper code from gnulib.
 GNULIB_BUILDDIR = build-gnulib
 LIBGNU = $(GNULIB_BUILDDIR)/import/libgnu.a
@@ -1341,6 +1344,10 @@ data-directory/Makefile: data-directory/Makefile.in config.status @frags@
          CONFIG_LINKS= \
          $(SHELL) config.status
 
+.PHONY: run
+run: Makefile
+       ./gdb$(EXEEXT) --data-directory=`pwd`/data-directory $(GDBFLAGS)
+
 jit-reader.h: $(srcdir)/jit-reader.in
        $(SHELL) config.status $@
 
This page took 0.040042 seconds and 4 git commands to generate.