Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Simon Marchi <simon.marchi@ericsson.com>
To: <gdb-patches@sourceware.org>
Cc: Simon Marchi <simon.marchi@ericsson.com>
Subject: [PATCH pushed] gdbserver: Clear .deps on clean
Date: Tue, 04 Apr 2017 14:52:00 -0000	[thread overview]
Message-ID: <20170404145219.30702-1-simon.marchi@ericsson.com> (raw)
In-Reply-To: <d28ec3f4-d167-d828-fc9a-69bdbb83774a@redhat.com>

I have just pushed this:

In some situations, the dependency tracking files in .deps can refer to
source files that were removed or renamed, leading to errors like:

  make: *** No rule to make target `version.c', needed by `version.o'. Stop.

This patch makes the clean target clear the .deps directory, which gives
the user a chance to recover from the error wihtout knowing about the
internals of the build system.

It is already done for GDB.  See here for more details:

  https://sourceware.org/ml/gdb-patches/2009-03/msg00000.html

gdb/gdbserver/ChangeLog:

	* Makefile.in (clean): Clear .deps.
---
 gdb/gdbserver/ChangeLog   | 4 ++++
 gdb/gdbserver/Makefile.in | 1 +
 2 files changed, 5 insertions(+)

diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 7ad841880e..39aea2fe0d 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,3 +1,7 @@
+2017-04-04  Simon Marchi  <simon.marchi@ericsson.com>
+
+	* Makefile.in (clean): Clear .deps.
+
 2017-03-31  Simon Marchi  <simon.marchi@polymtl.ca>
 
 	* .gitignore: Remove generated files, replace with wildcard.
diff --git a/gdb/gdbserver/Makefile.in b/gdb/gdbserver/Makefile.in
index 6af7c402f8..01dfdc0b89 100644
--- a/gdb/gdbserver/Makefile.in
+++ b/gdb/gdbserver/Makefile.in
@@ -417,6 +417,7 @@ clean:
 	rm -f $(IPA_LIB)
 	rm -f *-generated.c
 	rm -f stamp-xml
+	rm -f $(DEPDIR)/*.Po
 	@$(MAKE) $(FLAGS_TO_PASS) DO=$@ "DODIRS=$(SUBDIRS)" subdir_do
 
 maintainer-clean realclean distclean: clean
-- 
2.11.0


      reply	other threads:[~2017-04-04 14:52 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-30  3:14 [PATCH] gdbserver: Suffix generated C files with -generated Simon Marchi
2017-03-30  3:31 ` Simon Marchi
2017-03-31 12:24   ` Pedro Alves
2017-03-31 13:35     ` Simon Marchi
2017-03-31 14:56     ` [PATCH v2] " Simon Marchi
2017-03-31 15:13       ` Pedro Alves
     [not found]         ` <3038cd35b397eeafa1f8f0447630fa8e@polymtl.ca>
2017-03-31 18:46           ` Simon Marchi
2017-03-31 19:39             ` Simon Marchi
2017-04-04 10:44               ` Pedro Alves
2017-04-04 14:52                 ` Simon Marchi [this message]

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=20170404145219.30702-1-simon.marchi@ericsson.com \
    --to=simon.marchi@ericsson.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