aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2017-11-29 09:27:40 -0700
committerTom Tromey <tom@tromey.com>2017-11-29 11:56:40 -0700
commit5dcf52c19f7045fb179f703426d345b8a81d2210 (patch)
treeb89aa4df94d6c4156b9238e856a9fb19e8e2965b
parent6cf829987c6bc9ae61c7c9e8b4c71c4eea8ba2f9 (diff)
downloadgdb-5dcf52c19f7045fb179f703426d345b8a81d2210.zip
gdb-5dcf52c19f7045fb179f703426d345b8a81d2210.tar.gz
gdb-5dcf52c19f7045fb179f703426d345b8a81d2210.tar.bz2
Fix gdb snapshots
Joel pointed out that gdb snapshots were broken by my Makefile patch series. The bug is that rmdir in distclean was failing, because the directory did not exist. This fixes the bug by only invoking rmdir when the directory exists. Tested using "src-release.sh gdb". 2017-11-29 Tom Tromey <tom@tromey.com> * Makefile.in (distclean): Handle the case where rmdir fails.
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/Makefile.in2
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index bef5793..bd1eccf 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
2017-11-29 Tom Tromey <tom@tromey.com>
+ * Makefile.in (distclean): Handle the case where rmdir fails.
+
+2017-11-29 Tom Tromey <tom@tromey.com>
+
* symfile.c (_initialize_symfile): Update usage text for
add-symbol-file, symbol-file, load.
diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index 6e16bc6..284559b 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -1995,7 +1995,7 @@ distclean: clean
rm -f Makefile
rm -rf $(DEPDIR)
for i in $(CONFIG_SRC_SUBDIR); do \
- rmdir $$i/$(DEPDIR); \
+ if test -d $$i/$(DEPDIR); then rmdir $$i/$(DEPDIR); fi \
done
maintainer-clean: local-maintainer-clean do-maintainer-clean distclean