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 1/4] gdb: remove gcore, gstack and gdb-add-index in the clean target
Date: Thu,  3 Sep 2026 13:37:02 -0400	[thread overview]
Message-ID: <20260903173854.416876-2-simon.marchi@efficios.com> (raw)
In-Reply-To: <20260903173854.416876-1-simon.marchi@efficios.com>

Those are created by "make", so remove them in the clean target.

On the other hand, gcore.in and gdb-add-index.in are created at
configure time, so delete them in the distclean target (like gstack.in).

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

diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index 767f92808644..6fd528c71c5f 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -2408,6 +2408,7 @@ clean mostlyclean: $(CONFIG_CLEAN)
 	rm -f gdb$(EXEEXT) core make.log
 	rm -f gdb[0-9]$(EXEEXT)
 	rm -f xml-builtin.c stamp-xml
+	rm -f gcore gstack gdb-add-index
 	rm -f $(addsuffix /*.o,$(CONFIG_SRC_SUBDIR))
 	rm -f $(addsuffix /*,$(ALL_DEPDIRS))
 	for d in $(ALL_DEPDIRS); do \
@@ -2420,7 +2421,8 @@ clean mostlyclean: $(CONFIG_CLEAN)
 # functionality described is if the distributed files are unmodified.
 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 gcore gstack gstack.in stamp-nmh
+	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
 	rm -f y.output yacc.acts yacc.tmp y.tab.h
 	rm -f config.log config.cache
-- 
2.55.0


  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 ` Simon Marchi [this message]
2026-09-04 11:18   ` [PATCH 1/4] gdb: remove gcore, gstack and gdb-add-index in the clean target 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 ` [PATCH 3/4] gdb: gdb-gdb.gdb and gdb-gdb.py in distclean Simon Marchi
2026-09-04 10:48   ` 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-2-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