aboutsummaryrefslogtreecommitdiff
path: root/gdbsupport/Makefile.am
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2019-12-19 17:51:40 -0700
committerTom Tromey <tom@tromey.com>2020-01-14 16:25:04 -0700
commit0454ef42e74e051dda95004f3c99cbe89bce3a8c (patch)
tree6a077764690fc116afef9dc51944dc7ec9f3e61e /gdbsupport/Makefile.am
parent25e573565306c51df462eb6a957f86fc130ee580 (diff)
downloadgdb-0454ef42e74e051dda95004f3c99cbe89bce3a8c.zip
gdb-0454ef42e74e051dda95004f3c99cbe89bce3a8c.tar.gz
gdb-0454ef42e74e051dda95004f3c99cbe89bce3a8c.tar.bz2
Add gdbsupport check-defines script
This adds a new script that tries to check that none of the support code uses defines that are not defined by common.m4. This check is necessarily inexact, but this script caught all the issues fixed in the previous patches. gdbsupport/ChangeLog 2020-01-14 Tom Tromey <tom@tromey.com> * Makefile.in: Rebuild. * Makefile.am (check-defines): New target. * check-defines.el: New file. Change-Id: I59450e91394d5e6a7fa59e9ab53c95843c4bacd9
Diffstat (limited to 'gdbsupport/Makefile.am')
-rw-r--r--gdbsupport/Makefile.am4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdbsupport/Makefile.am b/gdbsupport/Makefile.am
index 48e6079..1a001a0 100644
--- a/gdbsupport/Makefile.am
+++ b/gdbsupport/Makefile.am
@@ -68,3 +68,7 @@ libgdbsupport_a_SOURCES = \
thread-pool.c \
xml-utils.c \
$(selftest)
+
+# Double-check that no defines are missing from our configury.
+check-defines:
+ cd $(srcdir) && emacs --script check-defines.el