From 5b9707eb872ad4cb50c98d396d16f110070a44ca Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Tue, 23 Apr 2024 15:22:44 -0400 Subject: gdb: remove gdbcmd.h Most files including gdbcmd.h currently rely on it to access things actually declared in cli/cli-cmds.h (setlist, showlist, etc). To make things easy, replace all includes of gdbcmd.h with includes of cli/cli-cmds.h. This might lead to some unused includes of cli/cli-cmds.h, but it's harmless, and much faster than going through the 170 or so files by hand. Change-Id: I11f884d4d616c12c05f395c98bbc2892950fb00f Approved-By: Tom Tromey --- gdb/cli/cli-cmds.c | 1 - gdb/cli/cli-logging.c | 2 +- gdb/cli/cli-script.c | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) (limited to 'gdb/cli') diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c index 3afe217..476138a 100644 --- a/gdb/cli/cli-cmds.c +++ b/gdb/cli/cli-cmds.c @@ -22,7 +22,6 @@ #include "completer.h" #include "target.h" #include "gdbsupport/gdb_wait.h" -#include "gdbcmd.h" #include "gdbsupport/gdb_regex.h" #include "gdb_vfork.h" #include "linespec.h" diff --git a/gdb/cli/cli-logging.c b/gdb/cli/cli-logging.c index 2b35728..2c54cea 100644 --- a/gdb/cli/cli-logging.c +++ b/gdb/cli/cli-logging.c @@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include "gdbcmd.h" +#include "cli/cli-cmds.h" #include "ui-out.h" #include "interps.h" #include "cli/cli-style.h" diff --git a/gdb/cli/cli-script.c b/gdb/cli/cli-script.c index 03e0a2e..329f780 100644 --- a/gdb/cli/cli-script.c +++ b/gdb/cli/cli-script.c @@ -30,7 +30,6 @@ #include "cli/cli-decode.h" #include "cli/cli-script.h" #include "cli/cli-style.h" -#include "gdbcmd.h" #include "extension.h" #include "interps.h" -- cgit v1.1