This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: add TAGS target in testsuite
>>>>> "Eli" == Eli Zaretskii <eliz@gnu.org> writes:
Eli> Do bad things happen if you don't specify --language=none?
Nope.
Eli> However, wouldn't "find ... | etags ... -" be slightly better?
Sure.
Eli> IMO, it only makes sense to add this to gdb/TAGS if the additional
Eli> tags get into the GDB binary. The test suite does not satisfy this
Eli> requirement (unlike, say, portions of Emacs implemented in Lisp).
Ok.
Michael> I use etags. My preference would be not to.
Ok.
Here is what I am checking in.
Pierre, maybe this will work better for you; I don't know.
Tom
2011-03-07 Tom Tromey <tromey@redhat.com>
* Makefile.in (TAGS): Rewrite.
Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/Makefile.in,v
retrieving revision 1.38
diff -u -r1.38 Makefile.in
--- Makefile.in 7 Mar 2011 17:03:51 -0000 1.38
+++ Makefile.in 7 Mar 2011 22:00:51 -0000
@@ -245,5 +245,5 @@
$(SHELL) config.status --recheck
TAGS: force
- etags --language=none --regex='/proc[ \t]+\([^ \t]+\)/\1/' \
- `find $(srcdir) -name '*.exp' -print`
+ find $(srcdir) -name '*.exp' -print | \
+ etags --regex='/proc[ \t]+\([^ \t]+\)/\1/' -