From 18d2988e5da8919514c76b83e2c0b56e439018bd Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Tue, 26 Mar 2024 15:06:46 -0400 Subject: gdb, gdbserver, gdbsupport: remove includes of early headers Now that defs.h, server.h and common-defs.h are included via the `-include` option, it is no longer necessary for source files to include them. Remove all the inclusions of these files I could find. Update the generation scripts where relevant. Change-Id: Ia026cff269c1b7ae7386dd3619bc9bb6a5332837 Approved-By: Pedro Alves --- gdb/nat/aarch64-hw-point.c | 1 - gdb/nat/aarch64-linux-hw-point.c | 1 - gdb/nat/aarch64-linux.c | 1 - gdb/nat/aarch64-mte-linux-ptrace.c | 1 - gdb/nat/aarch64-scalable-linux-ptrace.c | 1 - gdb/nat/amd64-linux-siginfo.c | 1 - gdb/nat/fork-inferior.c | 1 - gdb/nat/linux-btrace.c | 1 - gdb/nat/linux-namespaces.c | 1 - gdb/nat/linux-osdata.c | 1 - gdb/nat/linux-personality.c | 1 - gdb/nat/linux-procfs.c | 1 - gdb/nat/linux-ptrace.c | 1 - gdb/nat/linux-waitpid.c | 1 - gdb/nat/mips-linux-watch.c | 1 - gdb/nat/netbsd-nat.c | 1 - gdb/nat/ppc-linux.c | 1 - gdb/nat/riscv-linux-tdesc.c | 1 - gdb/nat/windows-nat.c | 1 - gdb/nat/x86-dregs.c | 1 - gdb/nat/x86-linux-dregs.c | 1 - gdb/nat/x86-linux.c | 1 - gdb/nat/x86-xstate.c | 1 - 23 files changed, 23 deletions(-) (limited to 'gdb/nat') diff --git a/gdb/nat/aarch64-hw-point.c b/gdb/nat/aarch64-hw-point.c index 08fd230..b62c462 100644 --- a/gdb/nat/aarch64-hw-point.c +++ b/gdb/nat/aarch64-hw-point.c @@ -15,7 +15,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include "gdbsupport/common-defs.h" #include "gdbsupport/break-common.h" #include "gdbsupport/common-regcache.h" #include "aarch64-hw-point.h" diff --git a/gdb/nat/aarch64-linux-hw-point.c b/gdb/nat/aarch64-linux-hw-point.c index 8a06a0c..43e04fe 100644 --- a/gdb/nat/aarch64-linux-hw-point.c +++ b/gdb/nat/aarch64-linux-hw-point.c @@ -16,7 +16,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include "gdbsupport/common-defs.h" #include "gdbsupport/break-common.h" #include "gdbsupport/common-regcache.h" #include "nat/linux-nat.h" diff --git a/gdb/nat/aarch64-linux.c b/gdb/nat/aarch64-linux.c index 5ebbc9b..5a95f22 100644 --- a/gdb/nat/aarch64-linux.c +++ b/gdb/nat/aarch64-linux.c @@ -16,7 +16,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include "gdbsupport/common-defs.h" #include "gdbsupport/break-common.h" #include "nat/linux-nat.h" #include "nat/aarch64-linux-hw-point.h" diff --git a/gdb/nat/aarch64-mte-linux-ptrace.c b/gdb/nat/aarch64-mte-linux-ptrace.c index dfd2856..ace3e18 100644 --- a/gdb/nat/aarch64-mte-linux-ptrace.c +++ b/gdb/nat/aarch64-mte-linux-ptrace.c @@ -17,7 +17,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include "gdbsupport/common-defs.h" #include "gdbsupport/byte-vector.h" #include "linux-ptrace.h" diff --git a/gdb/nat/aarch64-scalable-linux-ptrace.c b/gdb/nat/aarch64-scalable-linux-ptrace.c index a840d51..81bb8ea 100644 --- a/gdb/nat/aarch64-scalable-linux-ptrace.c +++ b/gdb/nat/aarch64-scalable-linux-ptrace.c @@ -19,7 +19,6 @@ #include #include -#include "gdbsupport/common-defs.h" #include "elf/external.h" #include "elf/common.h" #include "aarch64-scalable-linux-ptrace.h" diff --git a/gdb/nat/amd64-linux-siginfo.c b/gdb/nat/amd64-linux-siginfo.c index 8ced193..f5e9994 100644 --- a/gdb/nat/amd64-linux-siginfo.c +++ b/gdb/nat/amd64-linux-siginfo.c @@ -17,7 +17,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include "gdbsupport/common-defs.h" #include #include "amd64-linux-siginfo.h" diff --git a/gdb/nat/fork-inferior.c b/gdb/nat/fork-inferior.c index dfc2f6c..a5900fe 100644 --- a/gdb/nat/fork-inferior.c +++ b/gdb/nat/fork-inferior.c @@ -17,7 +17,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include "gdbsupport/common-defs.h" #include "fork-inferior.h" #include "target/waitstatus.h" #include "gdbsupport/filestuff.h" diff --git a/gdb/nat/linux-btrace.c b/gdb/nat/linux-btrace.c index f8352b6..5715168 100644 --- a/gdb/nat/linux-btrace.c +++ b/gdb/nat/linux-btrace.c @@ -19,7 +19,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include "gdbsupport/common-defs.h" #include "linux-btrace.h" #include "gdbsupport/common-regcache.h" #include "gdbsupport/gdb_wait.h" diff --git a/gdb/nat/linux-namespaces.c b/gdb/nat/linux-namespaces.c index 292e7e7..36a245c 100644 --- a/gdb/nat/linux-namespaces.c +++ b/gdb/nat/linux-namespaces.c @@ -17,7 +17,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include "gdbsupport/common-defs.h" #include "nat/linux-namespaces.h" #include "gdbsupport/filestuff.h" #include diff --git a/gdb/nat/linux-osdata.c b/gdb/nat/linux-osdata.c index c919294..6ffabe9 100644 --- a/gdb/nat/linux-osdata.c +++ b/gdb/nat/linux-osdata.c @@ -17,7 +17,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include "gdbsupport/common-defs.h" #include "linux-osdata.h" #include diff --git a/gdb/nat/linux-personality.c b/gdb/nat/linux-personality.c index 4978932..a406c73 100644 --- a/gdb/nat/linux-personality.c +++ b/gdb/nat/linux-personality.c @@ -17,7 +17,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include "gdbsupport/common-defs.h" #include "nat/linux-personality.h" #include diff --git a/gdb/nat/linux-procfs.c b/gdb/nat/linux-procfs.c index b17e312..e208695 100644 --- a/gdb/nat/linux-procfs.c +++ b/gdb/nat/linux-procfs.c @@ -16,7 +16,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include "gdbsupport/common-defs.h" #include "linux-procfs.h" #include "gdbsupport/filestuff.h" #include diff --git a/gdb/nat/linux-ptrace.c b/gdb/nat/linux-ptrace.c index 4fe8ffa..9ea0e22 100644 --- a/gdb/nat/linux-ptrace.c +++ b/gdb/nat/linux-ptrace.c @@ -16,7 +16,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include "gdbsupport/common-defs.h" #include "linux-ptrace.h" #include "linux-procfs.h" #include "linux-waitpid.h" diff --git a/gdb/nat/linux-waitpid.c b/gdb/nat/linux-waitpid.c index 7b5b095..0ac2f9f 100644 --- a/gdb/nat/linux-waitpid.c +++ b/gdb/nat/linux-waitpid.c @@ -17,7 +17,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include "gdbsupport/common-defs.h" #include "linux-nat.h" #include "linux-waitpid.h" diff --git a/gdb/nat/mips-linux-watch.c b/gdb/nat/mips-linux-watch.c index 091d235..7d105e8 100644 --- a/gdb/nat/mips-linux-watch.c +++ b/gdb/nat/mips-linux-watch.c @@ -15,7 +15,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include "gdbsupport/common-defs.h" #include "nat/gdb_ptrace.h" #include "mips-linux-watch.h" diff --git a/gdb/nat/netbsd-nat.c b/gdb/nat/netbsd-nat.c index 5b208c1..713ed6a 100644 --- a/gdb/nat/netbsd-nat.c +++ b/gdb/nat/netbsd-nat.c @@ -17,7 +17,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include "gdbsupport/common-defs.h" #include "nat/netbsd-nat.h" #include "gdbsupport/common-debug.h" diff --git a/gdb/nat/ppc-linux.c b/gdb/nat/ppc-linux.c index cc6dffe..d64ed33 100644 --- a/gdb/nat/ppc-linux.c +++ b/gdb/nat/ppc-linux.c @@ -15,7 +15,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include "gdbsupport/common-defs.h" #include "ppc-linux.h" #include "nat/gdb_ptrace.h" #include diff --git a/gdb/nat/riscv-linux-tdesc.c b/gdb/nat/riscv-linux-tdesc.c index 32f5277..0cd3843 100644 --- a/gdb/nat/riscv-linux-tdesc.c +++ b/gdb/nat/riscv-linux-tdesc.c @@ -16,7 +16,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include "gdbsupport/common-defs.h" #include "gdb_proc_service.h" #include "arch/riscv.h" diff --git a/gdb/nat/windows-nat.c b/gdb/nat/windows-nat.c index 86b70c8..f9f6848 100644 --- a/gdb/nat/windows-nat.c +++ b/gdb/nat/windows-nat.c @@ -16,7 +16,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include "gdbsupport/common-defs.h" #include "nat/windows-nat.h" #include "gdbsupport/common-debug.h" #include "target/target.h" diff --git a/gdb/nat/x86-dregs.c b/gdb/nat/x86-dregs.c index d22e839..7ea9f49 100644 --- a/gdb/nat/x86-dregs.c +++ b/gdb/nat/x86-dregs.c @@ -17,7 +17,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include "gdbsupport/common-defs.h" #include "x86-dregs.h" #include "gdbsupport/break-common.h" diff --git a/gdb/nat/x86-linux-dregs.c b/gdb/nat/x86-linux-dregs.c index a1bc499..a6c0ea6 100644 --- a/gdb/nat/x86-linux-dregs.c +++ b/gdb/nat/x86-linux-dregs.c @@ -17,7 +17,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include "gdbsupport/common-defs.h" #include "nat/gdb_ptrace.h" #include #include "target/waitstatus.h" diff --git a/gdb/nat/x86-linux.c b/gdb/nat/x86-linux.c index e61f4d7..7a21c8f 100644 --- a/gdb/nat/x86-linux.c +++ b/gdb/nat/x86-linux.c @@ -17,7 +17,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include "gdbsupport/common-defs.h" #include "x86-linux.h" #include "x86-linux-dregs.h" diff --git a/gdb/nat/x86-xstate.c b/gdb/nat/x86-xstate.c index 9b64ceb..970dda1 100644 --- a/gdb/nat/x86-xstate.c +++ b/gdb/nat/x86-xstate.c @@ -17,7 +17,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include "gdbsupport/common-defs.h" #include "gdbsupport/x86-xstate.h" #include "nat/x86-cpuid.h" #include "nat/x86-xstate.h" -- cgit v1.1