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/tui/tui-command.c | 1 - gdb/tui/tui-data.c | 1 - gdb/tui/tui-disasm.c | 1 - gdb/tui/tui-file.c | 1 - gdb/tui/tui-hooks.c | 1 - gdb/tui/tui-interp.c | 1 - gdb/tui/tui-io.c | 1 - gdb/tui/tui-layout.c | 1 - gdb/tui/tui-location.c | 1 - gdb/tui/tui-regs.c | 1 - gdb/tui/tui-source.c | 1 - gdb/tui/tui-status.c | 1 - gdb/tui/tui-win.c | 1 - gdb/tui/tui-wingeneral.c | 1 - gdb/tui/tui-winsource.c | 1 - gdb/tui/tui.c | 1 - 16 files changed, 16 deletions(-) (limited to 'gdb/tui') diff --git a/gdb/tui/tui-command.c b/gdb/tui/tui-command.c index 2587dfe..59e5955 100644 --- a/gdb/tui/tui-command.c +++ b/gdb/tui/tui-command.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 "defs.h" #include "tui/tui.h" #include "tui/tui-data.h" #include "tui/tui-win.h" diff --git a/gdb/tui/tui-data.c b/gdb/tui/tui-data.c index 03395d2..462771c 100644 --- a/gdb/tui/tui-data.c +++ b/gdb/tui/tui-data.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 "defs.h" #include "symtab.h" #include "tui/tui.h" #include "tui/tui-data.h" diff --git a/gdb/tui/tui-disasm.c b/gdb/tui/tui-disasm.c index 5dc27c3..07ca376 100644 --- a/gdb/tui/tui-disasm.c +++ b/gdb/tui/tui-disasm.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 "defs.h" #include "arch-utils.h" #include "symtab.h" #include "breakpoint.h" diff --git a/gdb/tui/tui-file.c b/gdb/tui/tui-file.c index 1cf8404..a0d72a0 100644 --- a/gdb/tui/tui-file.c +++ b/gdb/tui/tui-file.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 "defs.h" #include "tui/tui-file.h" #include "tui/tui-io.h" #include "tui/tui-command.h" diff --git a/gdb/tui/tui-hooks.c b/gdb/tui/tui-hooks.c index 289a259..cf48e70 100644 --- a/gdb/tui/tui-hooks.c +++ b/gdb/tui/tui-hooks.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 "defs.h" #include "symtab.h" #include "inferior.h" #include "command.h" diff --git a/gdb/tui/tui-interp.c b/gdb/tui/tui-interp.c index b16da31..a75708b 100644 --- a/gdb/tui/tui-interp.c +++ b/gdb/tui/tui-interp.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 "defs.h" #include "cli/cli-interp.h" #include "interps.h" #include "ui.h" diff --git a/gdb/tui/tui-io.c b/gdb/tui/tui-io.c index ba07e3d..34e85de 100644 --- a/gdb/tui/tui-io.c +++ b/gdb/tui/tui-io.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 "defs.h" #include "target.h" #include "gdbsupport/event-loop.h" #include "event-top.h" diff --git a/gdb/tui/tui-layout.c b/gdb/tui/tui-layout.c index a96ca85..143254b 100644 --- a/gdb/tui/tui-layout.c +++ b/gdb/tui/tui-layout.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 "defs.h" #include "arch-utils.h" #include "command.h" #include "symtab.h" diff --git a/gdb/tui/tui-location.c b/gdb/tui/tui-location.c index 831ab14..7e8f769 100644 --- a/gdb/tui/tui-location.c +++ b/gdb/tui/tui-location.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 "defs.h" #include "tui/tui.h" #include "tui/tui-status.h" #include "tui/tui-data.h" diff --git a/gdb/tui/tui-regs.c b/gdb/tui/tui-regs.c index 05211eb..88e1c5a 100644 --- a/gdb/tui/tui-regs.c +++ b/gdb/tui/tui-regs.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 "defs.h" #include "arch-utils.h" #include "tui/tui.h" #include "tui/tui-data.h" diff --git a/gdb/tui/tui-source.c b/gdb/tui/tui-source.c index fa956b2..5c17aba 100644 --- a/gdb/tui/tui-source.c +++ b/gdb/tui/tui-source.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 "defs.h" #include #include #include "symtab.h" diff --git a/gdb/tui/tui-status.c b/gdb/tui/tui-status.c index aac391d..c7750af 100644 --- a/gdb/tui/tui-status.c +++ b/gdb/tui/tui-status.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 "defs.h" #include "symtab.h" #include "breakpoint.h" #include "frame.h" diff --git a/gdb/tui/tui-win.c b/gdb/tui/tui-win.c index a2982eb..ced7e25 100644 --- a/gdb/tui/tui-win.c +++ b/gdb/tui/tui-win.c @@ -24,7 +24,6 @@ Author: Susan B. Macchia */ -#include "defs.h" #include "command.h" #include "symtab.h" #include "breakpoint.h" diff --git a/gdb/tui/tui-wingeneral.c b/gdb/tui/tui-wingeneral.c index 4263b9c..c14ac5a 100644 --- a/gdb/tui/tui-wingeneral.c +++ b/gdb/tui/tui-wingeneral.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 "defs.h" #include "tui/tui.h" #include "tui/tui-data.h" #include "tui/tui-io.h" diff --git a/gdb/tui/tui-winsource.c b/gdb/tui/tui-winsource.c index 6b8716c..4dbbe92 100644 --- a/gdb/tui/tui-winsource.c +++ b/gdb/tui/tui-winsource.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 "defs.h" #include #include "symtab.h" #include "frame.h" diff --git a/gdb/tui/tui.c b/gdb/tui/tui.c index dea6ffb..19f0960 100644 --- a/gdb/tui/tui.c +++ b/gdb/tui/tui.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 "defs.h" #include "gdbcmd.h" #include "tui/tui.h" #include "tui/tui-hooks.h" -- cgit v1.1