mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-05 23:23:09 +00:00
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>
This commit is contained in:
@@ -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. */
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user