diff options
author | Tom Tromey <tromey@adacore.com> | 2025-08-04 09:01:56 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2025-08-05 09:21:55 -0600 |
commit | f1e591b0c97a9a5680c150bd27694cea3f5ac1e8 (patch) | |
tree | 69b7d7723f0796269e3bee2f6ae6e050b9a4e059 | |
parent | 64917bab3caa10d89cb5ed160d20801065b7440b (diff) | |
download | binutils-f1e591b0c97a9a5680c150bd27694cea3f5ac1e8.zip binutils-f1e591b0c97a9a5680c150bd27694cea3f5ac1e8.tar.gz binutils-f1e591b0c97a9a5680c150bd27694cea3f5ac1e8.tar.bz2 |
Do not include cleanups.h from common-defs.h
Most code doesn't use cleanups any more, so remove the include of
cleanups.h from common-defs.h, and then only include that file where
it is truly needed.
Approved-By: Simon Marchi <simon.marchi@efficios.com>
-rw-r--r-- | gdb/compile/compile.c | 1 | ||||
-rw-r--r-- | gdb/debuginfod-support.c | 1 | ||||
-rw-r--r-- | gdb/run-on-main-thread.c | 1 | ||||
-rw-r--r-- | gdb/top.c | 1 | ||||
-rw-r--r-- | gdb/value.c | 1 | ||||
-rw-r--r-- | gdbsupport/common-defs.h | 1 |
6 files changed, 5 insertions, 1 deletions
diff --git a/gdb/compile/compile.c b/gdb/compile/compile.c index 229e155..5d81ec1 100644 --- a/gdb/compile/compile.c +++ b/gdb/compile/compile.c @@ -45,6 +45,7 @@ #include "gdbsupport/pathstuff.h" #include "gdbsupport/scoped_ignore_signal.h" #include "gdbsupport/buildargv.h" +#include "gdbsupport/cleanups.h" /* Hold "compile" commands. */ diff --git a/gdb/debuginfod-support.c b/gdb/debuginfod-support.c index 8f28fd5..e99c13b 100644 --- a/gdb/debuginfod-support.c +++ b/gdb/debuginfod-support.c @@ -18,6 +18,7 @@ #include "diagnostics.h" #include <errno.h> +#include "gdbsupport/cleanups.h" #include "gdbsupport/scoped_fd.h" #include "debuginfod-support.h" #include <optional> diff --git a/gdb/run-on-main-thread.c b/gdb/run-on-main-thread.c index 30b0928..bf53163 100644 --- a/gdb/run-on-main-thread.c +++ b/gdb/run-on-main-thread.c @@ -22,6 +22,7 @@ #include <thread> #include <mutex> #endif +#include "gdbsupport/cleanups.h" #include "gdbsupport/event-loop.h" /* The serial event used when posting runnables. */ @@ -34,6 +34,7 @@ #include "value.h" #include "language.h" #include "terminal.h" +#include "gdbsupport/cleanups.h" #include "gdbsupport/job-control.h" #include "annotate.h" #include "completer.h" diff --git a/gdb/value.c b/gdb/value.c index 5574642..82d9a86 100644 --- a/gdb/value.c +++ b/gdb/value.c @@ -45,6 +45,7 @@ #include <utility> #include <vector> #include "completer.h" +#include "gdbsupport/cleanups.h" #include "gdbsupport/selftest.h" #include "gdbsupport/array-view.h" #include "cli/cli-style.h" diff --git a/gdbsupport/common-defs.h b/gdbsupport/common-defs.h index cfdefe1..8d7e2a9 100644 --- a/gdbsupport/common-defs.h +++ b/gdbsupport/common-defs.h @@ -216,7 +216,6 @@ #include "errors.h" #include "print-utils.h" #include "common-debug.h" -#include "cleanups.h" #include "common-exceptions.h" #include "gdbsupport/poison.h" |