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/python | |
parent | 1863e6a54b31a5cda9b34537b40708232a90416c (diff) | |
download | binutils-5b9707eb872ad4cb50c98d396d16f110070a44ca.zip binutils-5b9707eb872ad4cb50c98d396d16f110070a44ca.tar.gz binutils-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/python')
-rw-r--r-- | gdb/python/py-auto-load.c | 2 | ||||
-rw-r--r-- | gdb/python/py-breakpoint.c | 2 | ||||
-rw-r--r-- | gdb/python/py-cmd.c | 2 | ||||
-rw-r--r-- | gdb/python/py-function.c | 2 | ||||
-rw-r--r-- | gdb/python/py-param.c | 2 | ||||
-rw-r--r-- | gdb/python/py-record-btrace.c | 2 | ||||
-rw-r--r-- | gdb/python/py-unwind.c | 2 | ||||
-rw-r--r-- | gdb/python/python.c | 2 |
8 files changed, 8 insertions, 8 deletions
diff --git a/gdb/python/py-auto-load.c b/gdb/python/py-auto-load.c index 8a3327b..9548973 100644 --- a/gdb/python/py-auto-load.c +++ b/gdb/python/py-auto-load.c @@ -18,7 +18,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include "top.h" -#include "gdbcmd.h" +#include "cli/cli-cmds.h" #include "objfiles.h" #include "python.h" #include "auto-load.h" diff --git a/gdb/python/py-breakpoint.c b/gdb/python/py-breakpoint.c index cd9ef30..da74d69 100644 --- a/gdb/python/py-breakpoint.c +++ b/gdb/python/py-breakpoint.c @@ -22,7 +22,7 @@ #include "python.h" #include "charset.h" #include "breakpoint.h" -#include "gdbcmd.h" +#include "cli/cli-cmds.h" #include "gdbthread.h" #include "observable.h" #include "cli/cli-script.h" diff --git a/gdb/python/py-cmd.c b/gdb/python/py-cmd.c index f18a8e8..f83b45d 100644 --- a/gdb/python/py-cmd.c +++ b/gdb/python/py-cmd.c @@ -22,7 +22,7 @@ #include "value.h" #include "python-internal.h" #include "charset.h" -#include "gdbcmd.h" +#include "cli/cli-cmds.h" #include "cli/cli-decode.h" #include "completer.h" #include "language.h" diff --git a/gdb/python/py-function.c b/gdb/python/py-function.c index 077396c..2bbfb9d 100644 --- a/gdb/python/py-function.c +++ b/gdb/python/py-function.c @@ -21,7 +21,7 @@ #include "value.h" #include "python-internal.h" #include "charset.h" -#include "gdbcmd.h" +#include "cli/cli-cmds.h" #include "cli/cli-decode.h" #include "completer.h" #include "expression.h" diff --git a/gdb/python/py-param.c b/gdb/python/py-param.c index ba83756..621f85d 100644 --- a/gdb/python/py-param.c +++ b/gdb/python/py-param.c @@ -21,7 +21,7 @@ #include "value.h" #include "python-internal.h" #include "charset.h" -#include "gdbcmd.h" +#include "cli/cli-cmds.h" #include "cli/cli-decode.h" #include "completer.h" #include "language.h" diff --git a/gdb/python/py-record-btrace.c b/gdb/python/py-record-btrace.c index 8c34add..36454fc 100644 --- a/gdb/python/py-record-btrace.c +++ b/gdb/python/py-record-btrace.c @@ -18,7 +18,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include "gdbcore.h" -#include "gdbcmd.h" +#include "cli/cli-cmds.h" #include "gdbthread.h" #include "btrace.h" #include "py-record.h" diff --git a/gdb/python/py-unwind.c b/gdb/python/py-unwind.c index 58bcf40..a86ccd2 100644 --- a/gdb/python/py-unwind.c +++ b/gdb/python/py-unwind.c @@ -20,7 +20,7 @@ #include "arch-utils.h" #include "frame-unwind.h" #include "gdbsupport/gdb_obstack.h" -#include "gdbcmd.h" +#include "cli/cli-cmds.h" #include "language.h" #include "observable.h" #include "python-internal.h" diff --git a/gdb/python/python.c b/gdb/python/python.c index a6875af..8121e5d 100644 --- a/gdb/python/python.c +++ b/gdb/python/python.c @@ -21,7 +21,7 @@ #include "command.h" #include "ui-out.h" #include "cli/cli-script.h" -#include "gdbcmd.h" +#include "cli/cli-cmds.h" #include "progspace.h" #include "objfiles.h" #include "value.h" |