diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2024-03-26 15:06:46 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2024-03-26 21:13:22 -0400 |
commit | 18d2988e5da8919514c76b83e2c0b56e439018bd (patch) | |
tree | 43f477df2a417d03d27b323ca11774209dd9f5b7 /gdbsupport | |
parent | ab7daea3ad0d9a553ac0e0d37898bdda45ad2c37 (diff) | |
download | gdb-18d2988e5da8919514c76b83e2c0b56e439018bd.zip gdb-18d2988e5da8919514c76b83e2c0b56e439018bd.tar.gz gdb-18d2988e5da8919514c76b83e2c0b56e439018bd.tar.bz2 |
gdb, gdbserver, gdbsupport: remove includes of early headers
Now that defs.h, server.h and common-defs.h are included via the
`-include` option, it is no longer necessary for source files to include
them. Remove all the inclusions of these files I could find. Update
the generation scripts where relevant.
Change-Id: Ia026cff269c1b7ae7386dd3619bc9bb6a5332837
Approved-By: Pedro Alves <pedro@palves.net>
Diffstat (limited to 'gdbsupport')
40 files changed, 0 insertions, 40 deletions
diff --git a/gdbsupport/agent.cc b/gdbsupport/agent.cc index 862582c..c70b59a 100644 --- a/gdbsupport/agent.cc +++ b/gdbsupport/agent.cc @@ -17,7 +17,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include "common-defs.h" #include "target/target.h" #include "gdbsupport/symbol.h" #include <unistd.h> diff --git a/gdbsupport/btrace-common.cc b/gdbsupport/btrace-common.cc index 2d54e8b..2358a9f 100644 --- a/gdbsupport/btrace-common.cc +++ b/gdbsupport/btrace-common.cc @@ -17,7 +17,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include "common-defs.h" #include "btrace-common.h" diff --git a/gdbsupport/cleanups.cc b/gdbsupport/cleanups.cc index cc14523..6362ea2 100644 --- a/gdbsupport/cleanups.cc +++ b/gdbsupport/cleanups.cc @@ -17,7 +17,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include "common-defs.h" #include "cleanups.h" #include <vector> diff --git a/gdbsupport/common-debug.cc b/gdbsupport/common-debug.cc index 9a5309f..c4d9528 100644 --- a/gdbsupport/common-debug.cc +++ b/gdbsupport/common-debug.cc @@ -17,7 +17,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include "common-defs.h" #include "common-debug.h" /* See gdbsupport/common-debug.h. */ diff --git a/gdbsupport/common-exceptions.cc b/gdbsupport/common-exceptions.cc index 0caed27..5aa1612 100644 --- a/gdbsupport/common-exceptions.cc +++ b/gdbsupport/common-exceptions.cc @@ -17,7 +17,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include "common-defs.h" #include "common-exceptions.h" #include <forward_list> diff --git a/gdbsupport/common-inferior.cc b/gdbsupport/common-inferior.cc index e9824df..4211e04 100644 --- a/gdbsupport/common-inferior.cc +++ b/gdbsupport/common-inferior.cc @@ -18,7 +18,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include "gdbsupport/common-defs.h" #include "gdbsupport/common-inferior.h" /* See common-inferior.h. */ diff --git a/gdbsupport/common-regcache.cc b/gdbsupport/common-regcache.cc index 9baca31..525bb5c 100644 --- a/gdbsupport/common-regcache.cc +++ b/gdbsupport/common-regcache.cc @@ -17,7 +17,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include "common-defs.h" #include "common-regcache.h" /* Return the register's value or throw if it's not available. */ diff --git a/gdbsupport/common-utils.cc b/gdbsupport/common-utils.cc index 99b9cb8..91c14a0 100644 --- a/gdbsupport/common-utils.cc +++ b/gdbsupport/common-utils.cc @@ -17,7 +17,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include "common-defs.h" #include "common-utils.h" #include "host-defs.h" #include "gdbsupport/gdb-safe-ctype.h" diff --git a/gdbsupport/environ.cc b/gdbsupport/environ.cc index f7984c5..1b6ca61 100644 --- a/gdbsupport/environ.cc +++ b/gdbsupport/environ.cc @@ -15,7 +15,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include "common-defs.h" #include "environ.h" #include <algorithm> #include <utility> diff --git a/gdbsupport/errors.cc b/gdbsupport/errors.cc index cccdc5c..c11229a 100644 --- a/gdbsupport/errors.cc +++ b/gdbsupport/errors.cc @@ -17,7 +17,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include "common-defs.h" #include "errors.h" #if defined (USE_WIN32API) || defined(__CYGWIN__) #include <windows.h> diff --git a/gdbsupport/event-loop.cc b/gdbsupport/event-loop.cc index 0ab6974..b18a9fd 100644 --- a/gdbsupport/event-loop.cc +++ b/gdbsupport/event-loop.cc @@ -17,7 +17,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include "gdbsupport/common-defs.h" #include "gdbsupport/event-loop.h" #include <chrono> diff --git a/gdbsupport/event-pipe.cc b/gdbsupport/event-pipe.cc index 7e8e8d6..af6c943 100644 --- a/gdbsupport/event-pipe.cc +++ b/gdbsupport/event-pipe.cc @@ -17,7 +17,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include "gdbsupport/common-defs.h" #include "gdbsupport/event-pipe.h" #include "gdbsupport/filestuff.h" diff --git a/gdbsupport/fileio.cc b/gdbsupport/fileio.cc index 26fa6fd..b115e33b 100644 --- a/gdbsupport/fileio.cc +++ b/gdbsupport/fileio.cc @@ -17,7 +17,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include "common-defs.h" #include "fileio.h" #include <sys/stat.h> #include <fcntl.h> diff --git a/gdbsupport/filestuff.cc b/gdbsupport/filestuff.cc index 9d3b417..5c427e1 100644 --- a/gdbsupport/filestuff.cc +++ b/gdbsupport/filestuff.cc @@ -16,7 +16,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include "common-defs.h" #include "filestuff.h" #include "gdb_vecs.h" #include <fcntl.h> diff --git a/gdbsupport/format.cc b/gdbsupport/format.cc index 4e228a9..12173ee 100644 --- a/gdbsupport/format.cc +++ b/gdbsupport/format.cc @@ -17,7 +17,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include "common-defs.h" #include "format.h" format_pieces::format_pieces (const char **arg, bool gdb_extensions, diff --git a/gdbsupport/gdb-dlfcn.cc b/gdbsupport/gdb-dlfcn.cc index d8dbabd..1a8289a 100644 --- a/gdbsupport/gdb-dlfcn.cc +++ b/gdbsupport/gdb-dlfcn.cc @@ -17,7 +17,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include "common-defs.h" #include "gdb-dlfcn.h" #ifdef HAVE_DLFCN_H diff --git a/gdbsupport/gdb-hashtab.cc b/gdbsupport/gdb-hashtab.cc index 7ef41cc..42f80fa 100644 --- a/gdbsupport/gdb-hashtab.cc +++ b/gdbsupport/gdb-hashtab.cc @@ -16,7 +16,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include "common-defs.h" #include "gdb-hashtab.h" /* Allocation function for the libiberty hash table which uses an diff --git a/gdbsupport/gdb_obstack.cc b/gdbsupport/gdb_obstack.cc index 8bbd64f..f24b4fc 100644 --- a/gdbsupport/gdb_obstack.cc +++ b/gdbsupport/gdb_obstack.cc @@ -17,7 +17,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include "common-defs.h" #include "gdb_obstack.h" /* Concatenate NULL terminated variable argument list of `const char *' diff --git a/gdbsupport/gdb_regex.cc b/gdbsupport/gdb_regex.cc index 4c50c4f..5570a14 100644 --- a/gdbsupport/gdb_regex.cc +++ b/gdbsupport/gdb_regex.cc @@ -15,7 +15,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include "common-defs.h" #include "gdb_regex.h" #include "gdbsupport/def-vector.h" diff --git a/gdbsupport/gdb_tilde_expand.cc b/gdbsupport/gdb_tilde_expand.cc index 8aa4fa0..4a0a573 100644 --- a/gdbsupport/gdb_tilde_expand.cc +++ b/gdbsupport/gdb_tilde_expand.cc @@ -17,7 +17,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include "common-defs.h" #include <algorithm> #include "filenames.h" #include "gdb_tilde_expand.h" diff --git a/gdbsupport/gdb_vecs.cc b/gdbsupport/gdb_vecs.cc index 8b7f4fb..71c7308 100644 --- a/gdbsupport/gdb_vecs.cc +++ b/gdbsupport/gdb_vecs.cc @@ -17,7 +17,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include "common-defs.h" #include "gdb_vecs.h" #include "host-defs.h" diff --git a/gdbsupport/gdb_wait.cc b/gdbsupport/gdb_wait.cc index 5c1c424..476861d 100644 --- a/gdbsupport/gdb_wait.cc +++ b/gdbsupport/gdb_wait.cc @@ -17,7 +17,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include "common-defs.h" #include "gdb_wait.h" diff --git a/gdbsupport/job-control.cc b/gdbsupport/job-control.cc index 7637cc5..eff196d 100644 --- a/gdbsupport/job-control.cc +++ b/gdbsupport/job-control.cc @@ -18,7 +18,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include "common-defs.h" #include "job-control.h" #ifdef HAVE_TERMIOS_H #include <termios.h> diff --git a/gdbsupport/netstuff.cc b/gdbsupport/netstuff.cc index af00f9c..73f1d3b 100644 --- a/gdbsupport/netstuff.cc +++ b/gdbsupport/netstuff.cc @@ -16,7 +16,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include "common-defs.h" #include "netstuff.h" #include <algorithm> diff --git a/gdbsupport/new-op.cc b/gdbsupport/new-op.cc index 3d3fa99..23ab0bb 100644 --- a/gdbsupport/new-op.cc +++ b/gdbsupport/new-op.cc @@ -23,7 +23,6 @@ #endif #if !__has_feature(address_sanitizer) && !defined(__SANITIZE_ADDRESS__) -#include "common-defs.h" #include "host-defs.h" #include <new> diff --git a/gdbsupport/pathstuff.cc b/gdbsupport/pathstuff.cc index f40df11..9c3816c 100644 --- a/gdbsupport/pathstuff.cc +++ b/gdbsupport/pathstuff.cc @@ -17,7 +17,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include "common-defs.h" #include "pathstuff.h" #include "host-defs.h" #include "filenames.h" diff --git a/gdbsupport/print-utils.cc b/gdbsupport/print-utils.cc index 1fdaf4d..565a479 100644 --- a/gdbsupport/print-utils.cc +++ b/gdbsupport/print-utils.cc @@ -17,7 +17,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include "common-defs.h" #include "print-utils.h" /* Temporary storage using circular buffer. */ diff --git a/gdbsupport/ptid.cc b/gdbsupport/ptid.cc index 08866ef..56daf92 100644 --- a/gdbsupport/ptid.cc +++ b/gdbsupport/ptid.cc @@ -17,7 +17,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include "common-defs.h" #include "ptid.h" #include "print-utils.h" diff --git a/gdbsupport/rsp-low.cc b/gdbsupport/rsp-low.cc index 37dce9d..20f249f 100644 --- a/gdbsupport/rsp-low.cc +++ b/gdbsupport/rsp-low.cc @@ -17,7 +17,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include "common-defs.h" #include "rsp-low.h" /* See rsp-low.h. */ diff --git a/gdbsupport/run-time-clock.cc b/gdbsupport/run-time-clock.cc index 4e0f980..f754b03 100644 --- a/gdbsupport/run-time-clock.cc +++ b/gdbsupport/run-time-clock.cc @@ -16,7 +16,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include "common-defs.h" #include "run-time-clock.h" #if defined HAVE_SYS_RESOURCE_H #include <sys/resource.h> diff --git a/gdbsupport/safe-strerror.cc b/gdbsupport/safe-strerror.cc index 68899df..54b3b85 100644 --- a/gdbsupport/safe-strerror.cc +++ b/gdbsupport/safe-strerror.cc @@ -17,7 +17,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include "common-defs.h" #include <string.h> /* There are two different versions of strerror_r; one is GNU-specific, the diff --git a/gdbsupport/scoped_mmap.cc b/gdbsupport/scoped_mmap.cc index 4f70ac6..c5c527b 100644 --- a/gdbsupport/scoped_mmap.cc +++ b/gdbsupport/scoped_mmap.cc @@ -17,7 +17,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include "common-defs.h" #include "scoped_mmap.h" #include "scoped_fd.h" #include "gdbsupport/filestuff.h" diff --git a/gdbsupport/search.cc b/gdbsupport/search.cc index 896aed5..6c52643 100644 --- a/gdbsupport/search.cc +++ b/gdbsupport/search.cc @@ -17,7 +17,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include "gdbsupport/common-defs.h" #include "gdbsupport/search.h" #include "gdbsupport/byte-vector.h" diff --git a/gdbsupport/selftest.cc b/gdbsupport/selftest.cc index 1e6d07f..d3bed68 100644 --- a/gdbsupport/selftest.cc +++ b/gdbsupport/selftest.cc @@ -16,7 +16,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include "common-defs.h" #include "common-exceptions.h" #include "common-debug.h" #include "selftest.h" diff --git a/gdbsupport/signals-state-save-restore.cc b/gdbsupport/signals-state-save-restore.cc index 307e238..60724f9 100644 --- a/gdbsupport/signals-state-save-restore.cc +++ b/gdbsupport/signals-state-save-restore.cc @@ -15,7 +15,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include "common-defs.h" #include "signals-state-save-restore.h" #include "gdbsupport/gdb-sigmask.h" diff --git a/gdbsupport/signals.cc b/gdbsupport/signals.cc index 782b490..4989b3f 100644 --- a/gdbsupport/signals.cc +++ b/gdbsupport/signals.cc @@ -17,7 +17,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include "common-defs.h" #ifdef HAVE_SIGNAL_H #include <signal.h> diff --git a/gdbsupport/task-group.cc b/gdbsupport/task-group.cc index 6844d85..e29ed25 100644 --- a/gdbsupport/task-group.cc +++ b/gdbsupport/task-group.cc @@ -17,7 +17,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include "common-defs.h" #include "task-group.h" #include "thread-pool.h" diff --git a/gdbsupport/tdesc.cc b/gdbsupport/tdesc.cc index 1ee3e1f..080d39c 100644 --- a/gdbsupport/tdesc.cc +++ b/gdbsupport/tdesc.cc @@ -17,7 +17,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include "common-defs.h" #include "gdbsupport/tdesc.h" tdesc_reg::tdesc_reg (struct tdesc_feature *feature, const std::string &name_, diff --git a/gdbsupport/thread-pool.cc b/gdbsupport/thread-pool.cc index 1b46b68..04a2034 100644 --- a/gdbsupport/thread-pool.cc +++ b/gdbsupport/thread-pool.cc @@ -17,7 +17,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include "common-defs.h" #include "gdbsupport/thread-pool.h" #if CXX_STD_THREAD diff --git a/gdbsupport/xml-utils.cc b/gdbsupport/xml-utils.cc index 0490f21..b89204c 100644 --- a/gdbsupport/xml-utils.cc +++ b/gdbsupport/xml-utils.cc @@ -17,7 +17,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include "common-defs.h" #include "xml-utils.h" /* See xml-utils.h. */ |