public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Fix 'make TAGS' in gdbserver
@ 2022-12-23 20:29 Tom Tromey
  2023-01-18 18:11 ` Tom Tromey
  0 siblings, 1 reply; 2+ messages in thread
From: Tom Tromey @ 2022-12-23 20:29 UTC (permalink / raw)
  To: gdb-patches; +Cc: Tom Tromey

PR build/29003 points out that "make TAGS" is broken in gdbserver.
This patch fixes the problem that is pointed out there, plus another
one I noticed while working on that -- namely that the "sed" computes
the wrong names for some source files.  Finally, a couple of obsolete
variable references are removed.

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=29003
---
 gdbserver/Makefile.in | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/gdbserver/Makefile.in b/gdbserver/Makefile.in
index 8462d78a859..54eaff4394f 100644
--- a/gdbserver/Makefile.in
+++ b/gdbserver/Makefile.in
@@ -235,7 +235,7 @@ DEPFILES = @GDBSERVER_DEPFILES@
 LIBOBJS = @LIBOBJS@
 
 SOURCES = $(SFILES)
-TAGFILES = $(SOURCES) ${HFILES} ${ALLPARAM} ${POSSLIBS}
+TAGFILES = $(SOURCES)
 
 OBS = \
 	alloc.o \
@@ -398,8 +398,9 @@ TAGS:	${TAGFILES}
 	etags \
 	  `for i in yzzy ${DEPFILES}; do \
 	     if [ x$$i != xyzzy ]; then \
-	       echo ${srcdir}/$$i | sed -e 's/\.o$$/\.cc/' \
-		 -e 's,/\(arch\|nat\|target\)/,/../\1/,' \
+	       echo ${srcdir}/$$i | \
+		 sed -e 's,/\(\(arch\|nat\|target\)/.*\)\.o$$,/../gdb/\1.c,' \
+		     -e 's/\.o$$/\.cc/'; \
 	     fi; \
 	   done` \
 	  ${TAGFILES}
-- 
2.38.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Fix 'make TAGS' in gdbserver
  2022-12-23 20:29 [PATCH] Fix 'make TAGS' in gdbserver Tom Tromey
@ 2023-01-18 18:11 ` Tom Tromey
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Tromey @ 2023-01-18 18:11 UTC (permalink / raw)
  To: Tom Tromey; +Cc: gdb-patches

>>>>> "Tom" == Tom Tromey <tom@tromey.com> writes:

Tom> PR build/29003 points out that "make TAGS" is broken in gdbserver.
Tom> This patch fixes the problem that is pointed out there, plus another
Tom> one I noticed while working on that -- namely that the "sed" computes
Tom> the wrong names for some source files.  Finally, a couple of obsolete
Tom> variable references are removed.

Tom> Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=29003

I'm going to check this in.

Tom

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-01-18 18:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-23 20:29 [PATCH] Fix 'make TAGS' in gdbserver Tom Tromey
2023-01-18 18:11 ` Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).