From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2126) id BD7393858D28; Wed, 18 Jan 2023 18:12:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BD7393858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1674065560; bh=haJwoO2aI4n260XGOycAA5HLBD09IlOzF1gaErmOHWM=; h=From:To:Subject:Date:From; b=bJ+DYvTEMXeCUFXoxNR8q33mbm6tOgyxloPgkm+PUD3q+T47mlJOUztF22O7D+Ln2 hrftozEp4ao9t/19NmoRsJTfC6/jhEwDh3BqG6j1f/GMbTDlXMiGg97bvd+/+bT3YR 5LtyiePhVjFEOGs5p3H4Izk+UYroaIScTW960PzQ= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Tom Tromey To: gdb-cvs@sourceware.org Subject: [binutils-gdb] Fix 'make TAGS' in gdbserver X-Act-Checkin: binutils-gdb X-Git-Author: Tom Tromey X-Git-Refname: refs/heads/master X-Git-Oldrev: b986eec55f460a9c77a0c06ec30d7280293f7a8c X-Git-Newrev: bd3014572d687e6d6e9d27a46d5b19a4a5528e85 Message-Id: <20230118181240.BD7393858D28@sourceware.org> Date: Wed, 18 Jan 2023 18:12:40 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Dbd3014572d68= 7e6d6e9d27a46d5b19a4a5528e85 commit bd3014572d687e6d6e9d27a46d5b19a4a5528e85 Author: Tom Tromey Date: Fri Dec 23 13:28:20 2022 -0700 Fix 'make TAGS' in gdbserver =20 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. =20 Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=3D29003 Diff: --- gdbserver/Makefile.in | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gdbserver/Makefile.in b/gdbserver/Makefile.in index 040f0b6faa0..39cb9e7a151 100644 --- a/gdbserver/Makefile.in +++ b/gdbserver/Makefile.in @@ -235,7 +235,7 @@ DEPFILES =3D @GDBSERVER_DEPFILES@ LIBOBJS =3D @LIBOBJS@ =20 SOURCES =3D $(SFILES) -TAGFILES =3D $(SOURCES) ${HFILES} ${ALLPARAM} ${POSSLIBS} +TAGFILES =3D $(SOURCES) =20 OBS =3D \ alloc.o \ @@ -398,8 +398,9 @@ TAGS: ${TAGFILES} etags \ `for i in yzzy ${DEPFILES}; do \ if [ x$$i !=3D 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}