From 0454ef42e74e051dda95004f3c99cbe89bce3a8c Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Thu, 19 Dec 2019 17:51:40 -0700 Subject: 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 * Makefile.in: Rebuild. * Makefile.am (check-defines): New target. * check-defines.el: New file. Change-Id: I59450e91394d5e6a7fa59e9ab53c95843c4bacd9 --- gdbsupport/Makefile.in | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gdbsupport/Makefile.in') diff --git a/gdbsupport/Makefile.in b/gdbsupport/Makefile.in index a2e174d..5723ae5 100644 --- a/gdbsupport/Makefile.in +++ b/gdbsupport/Makefile.in @@ -691,6 +691,10 @@ uninstall-am: override CC := $(CXX) override CFLAGS := $(CXXFLAGS) +# Double-check that no defines are missing from our configury. +check-defines: + cd $(srcdir) && emacs --script check-defines.el + # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: -- cgit v1.1