Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Simon Marchi <simon.marchi@efficios.com>
To: gdb-patches@sourceware.org
Cc: Simon Marchi <simon.marchi@efficios.com>
Subject: [PATCH 3/4] gdb: gdb-gdb.gdb and gdb-gdb.py in distclean
Date: Thu,  3 Sep 2026 13:37:04 -0400	[thread overview]
Message-ID: <20260903173854.416876-4-simon.marchi@efficios.com> (raw)
In-Reply-To: <20260903173854.416876-1-simon.marchi@efficios.com>

Both gdb-gdb.gdb and gdb-gdb.py are created by configure through
AC_CONFIG_LINKS.  When building in-tree, this does nothing.  When
building out-of-tree, AC_CONFIG_LINKS created a link or a copy.  Either
way, distclean should delete them but only when building out of tree.

Change-Id: Iceca0a6b131c97028ecbc79650f451e83a2c5aed
---
 gdb/Makefile.in | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index 6fd528c71c5f..f159a510dd6d 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -2423,7 +2423,9 @@ distclean: clean
 	@$(MAKE) $(FLAGS_TO_PASS) DO=distclean "DODIRS=$(CLEANDIRS)" subdir_do
 	rm -f nm.h config.status config.h stamp-h b jit-reader.h stamp-nmh
 	rm -f gcore.in gstack.in gdb-add-index.in
-	rm -f gdb-gdb.gdb
+	if test "$(srcdir)" != "."; then \
+		rm -f gdb-gdb.gdb gdb-gdb.py; \
+	fi
 	rm -f y.output yacc.acts yacc.tmp y.tab.h
 	rm -f config.log config.cache
 	rm -f config.lt libtool
-- 
2.55.0


  parent reply	other threads:[~2026-09-03 17:39 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-03 17:37 [PATCH 0/4] Some Makefile clean target cleanups Simon Marchi
2026-09-03 17:37 ` [PATCH 1/4] gdb: remove gcore, gstack and gdb-add-index in the clean target Simon Marchi
2026-09-04 11:18   ` Tom de Vries
2026-09-03 17:37 ` [PATCH 2/4] gdbserver: remove undefined ADD_FILES from " Simon Marchi
2026-09-04 10:55   ` Tom de Vries
2026-09-03 17:37 ` Simon Marchi [this message]
2026-09-04 10:48   ` [PATCH 3/4] gdb: gdb-gdb.gdb and gdb-gdb.py in distclean Tom de Vries
2026-09-04 14:07     ` Simon Marchi
2026-09-03 17:37 ` [PATCH 4/4] gdb: remove stray "b" from the distclean target Simon Marchi
2026-09-04 10:50   ` Tom de Vries

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260903173854.416876-4-simon.marchi@efficios.com \
    --to=simon.marchi@efficios.com \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox