diff options
author | Tom Tromey <tom@tromey.com> | 2022-12-23 13:28:20 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-01-18 11:12:20 -0700 |
commit | bd3014572d687e6d6e9d27a46d5b19a4a5528e85 (patch) | |
tree | 92f046917791cf86bdc29365acb0659e134b6034 /gdbserver | |
parent | b986eec55f460a9c77a0c06ec30d7280293f7a8c (diff) | |
download | gdb-bd3014572d687e6d6e9d27a46d5b19a4a5528e85.zip gdb-bd3014572d687e6d6e9d27a46d5b19a4a5528e85.tar.gz gdb-bd3014572d687e6d6e9d27a46d5b19a4a5528e85.tar.bz2 |
Fix 'make TAGS' in gdbserver
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
Diffstat (limited to 'gdbserver')
-rw-r--r-- | gdbserver/Makefile.in | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gdbserver/Makefile.in b/gdbserver/Makefile.in index 040f0b6..39cb9e7 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} |