This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
FYI: add TAGS target in testsuite
- From: Tom Tromey <tromey at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Mon, 07 Mar 2011 10:03:38 -0700
- Subject: FYI: add TAGS target in testsuite
I am checking this in.
I wanted to be able to use tags in the testsuite. This patch adds a
"TAGS" target to the testsuite Makefile.
I am undecided as to whether I should add this to gdb/TAGS via `etags
--include'. If you use etags, and have an opinion, let me know.
Tom
2011-03-07 Tom Tromey <tromey@redhat.com>
* Makefile.in (TAGS): New target.
diff --git a/gdb/testsuite/Makefile.in b/gdb/testsuite/Makefile.in
index c1356c5..8017ff0 100644
--- a/gdb/testsuite/Makefile.in
+++ b/gdb/testsuite/Makefile.in
@@ -242,3 +242,7 @@ Makefile : Makefile.in config.status $(host_makefile_frag)
config.status: configure
$(SHELL) config.status --recheck
+
+TAGS: force
+ etags --language=none --regex='/proc[ \t]+\([^ \t]+\)/\1/' \
+ `find $(srcdir) -name '*.exp' -print`