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/cli/cli-cmds.c | 1 - gdb/cli/cli-decode.c | 1 - gdb/cli/cli-dump.c | 1 - gdb/cli/cli-interp.c | 1 - gdb/cli/cli-logging.c | 1 - gdb/cli/cli-option.c | 1 - gdb/cli/cli-script.c | 1 - gdb/cli/cli-setshow.c | 1 - gdb/cli/cli-style.c | 1 - gdb/cli/cli-utils.c | 1 - 10 files changed, 10 deletions(-) (limited to 'gdb/cli') diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c index df11f95..3afe217 100644 --- a/gdb/cli/cli-cmds.c +++ b/gdb/cli/cli-cmds.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 "arch-utils.h" #include "readline/tilde.h" #include "completer.h" diff --git a/gdb/cli/cli-decode.c b/gdb/cli/cli-decode.c index bbabd40..d9a2ab4 100644 --- a/gdb/cli/cli-decode.c +++ b/gdb/cli/cli-decode.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 "symtab.h" #include #include "gdbsupport/gdb_regex.h" diff --git a/gdb/cli/cli-dump.c b/gdb/cli/cli-dump.c index 765117b..9b44c6e 100644 --- a/gdb/cli/cli-dump.c +++ b/gdb/cli/cli-dump.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 "cli/cli-decode.h" #include "cli/cli-cmds.h" #include "value.h" diff --git a/gdb/cli/cli-interp.c b/gdb/cli/cli-interp.c index a0bf32f..7cefc39 100644 --- a/gdb/cli/cli-interp.c +++ b/gdb/cli/cli-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-interp.h" #include "interps.h" #include "event-top.h" diff --git a/gdb/cli/cli-logging.c b/gdb/cli/cli-logging.c index 7c337c8..2b35728 100644 --- a/gdb/cli/cli-logging.c +++ b/gdb/cli/cli-logging.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 "gdbcmd.h" #include "ui-out.h" #include "interps.h" diff --git a/gdb/cli/cli-option.c b/gdb/cli/cli-option.c index 3ef210e..0553928 100644 --- a/gdb/cli/cli-option.c +++ b/gdb/cli/cli-option.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-option.h" #include "cli/cli-decode.h" #include "cli/cli-utils.h" diff --git a/gdb/cli/cli-script.c b/gdb/cli/cli-script.c index f06724a..2f73180 100644 --- a/gdb/cli/cli-script.c +++ b/gdb/cli/cli-script.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 "value.h" #include diff --git a/gdb/cli/cli-setshow.c b/gdb/cli/cli-setshow.c index b1ad11c..bcc793b 100644 --- a/gdb/cli/cli-setshow.c +++ b/gdb/cli/cli-setshow.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 "readline/tilde.h" #include "value.h" #include diff --git a/gdb/cli/cli-style.c b/gdb/cli/cli-style.c index 2fccc72..5928998 100644 --- a/gdb/cli/cli-style.c +++ b/gdb/cli/cli-style.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-cmds.h" #include "cli/cli-decode.h" #include "cli/cli-setshow.h" diff --git a/gdb/cli/cli-utils.c b/gdb/cli/cli-utils.c index c3206c4..45b3084 100644 --- a/gdb/cli/cli-utils.c +++ b/gdb/cli/cli-utils.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-utils.h" #include "value.h" -- cgit v1.1