diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2024-04-23 15:22:44 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2024-04-25 12:59:02 -0400 |
commit | 5b9707eb872ad4cb50c98d396d16f110070a44ca (patch) | |
tree | 6a7cb1a70adadf11c1a5e6a52243701970a805c0 /gdb/compile | |
parent | 1863e6a54b31a5cda9b34537b40708232a90416c (diff) | |
download | gdb-5b9707eb872ad4cb50c98d396d16f110070a44ca.zip gdb-5b9707eb872ad4cb50c98d396d16f110070a44ca.tar.gz gdb-5b9707eb872ad4cb50c98d396d16f110070a44ca.tar.bz2 |
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 <tom@tromey.com>
Diffstat (limited to 'gdb/compile')
-rw-r--r-- | gdb/compile/compile-cplus-symbols.c | 2 | ||||
-rw-r--r-- | gdb/compile/compile-cplus-types.c | 2 | ||||
-rw-r--r-- | gdb/compile/compile-object-load.c | 2 | ||||
-rw-r--r-- | gdb/compile/compile.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/gdb/compile/compile-cplus-symbols.c b/gdb/compile/compile-cplus-symbols.c index c95c86f..9b95cdd 100644 --- a/gdb/compile/compile-cplus-symbols.c +++ b/gdb/compile/compile-cplus-symbols.c @@ -31,7 +31,7 @@ #include "gdbtypes.h" #include "dwarf2/loc.h" #include "cp-support.h" -#include "gdbcmd.h" +#include "cli/cli-cmds.h" #include "compile-c.h" #include "inferior.h" diff --git a/gdb/compile/compile-cplus-types.c b/gdb/compile/compile-cplus-types.c index 212db68..8d14114 100644 --- a/gdb/compile/compile-cplus-types.c +++ b/gdb/compile/compile-cplus-types.c @@ -29,7 +29,7 @@ #include "cp-abi.h" #include "objfiles.h" #include "block.h" -#include "gdbcmd.h" +#include "cli/cli-cmds.h" #include "c-lang.h" #include "compile-c.h" #include <algorithm> diff --git a/gdb/compile/compile-object-load.c b/gdb/compile/compile-object-load.c index d1b5d59..08e30be 100644 --- a/gdb/compile/compile-object-load.c +++ b/gdb/compile/compile-object-load.c @@ -24,7 +24,7 @@ #include "gdbcore.h" #include "readline/tilde.h" #include "bfdlink.h" -#include "gdbcmd.h" +#include "cli/cli-cmds.h" #include "regcache.h" #include "inferior.h" #include "gdbthread.h" diff --git a/gdb/compile/compile.c b/gdb/compile/compile.c index 2d97a1b..88531a2 100644 --- a/gdb/compile/compile.c +++ b/gdb/compile/compile.c @@ -24,7 +24,7 @@ #include "cli/cli-utils.h" #include "cli/cli-option.h" #include "completer.h" -#include "gdbcmd.h" +#include "cli/cli-cmds.h" #include "compile.h" #include "compile-internal.h" #include "compile-object-load.h" |