From: Tom de Vries <tdevries@suse.de>
To: Simon Marchi <simon.marchi@efficios.com>, gdb-patches@sourceware.org
Subject: Re: [PATCH 1/4] gdb: remove gcore, gstack and gdb-add-index in the clean target
Date: Fri, 4 Sep 2026 13:18:45 +0200 [thread overview]
Message-ID: <75444cf3-20f3-4b92-bc2b-555b89c6cd11@suse.de> (raw)
In-Reply-To: <20260903173854.416876-2-simon.marchi@efficios.com>
On 9/3/26 7:37 PM, Simon Marchi wrote:
> 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).
>
LGTM.
Approved-By: Tom de Vries <tdevries@suse.de>
Thanks,
- Tom
> 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
next prev parent reply other threads:[~2026-09-04 11:19 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 [this message]
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=75444cf3-20f3-4b92-bc2b-555b89c6cd11@suse.de \
--to=tdevries@suse.de \
--cc=gdb-patches@sourceware.org \
--cc=simon.marchi@efficios.com \
/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