aboutsummaryrefslogtreecommitdiff
path: root/gdb/alloc.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2024-03-26 15:06:46 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2024-03-26 21:13:22 -0400
commit18d2988e5da8919514c76b83e2c0b56e439018bd (patch)
tree43f477df2a417d03d27b323ca11774209dd9f5b7 /gdb/alloc.c
parentab7daea3ad0d9a553ac0e0d37898bdda45ad2c37 (diff)
downloadbinutils-18d2988e5da8919514c76b83e2c0b56e439018bd.zip
binutils-18d2988e5da8919514c76b83e2c0b56e439018bd.tar.gz
binutils-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 'gdb/alloc.c')
-rw-r--r--gdb/alloc.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/gdb/alloc.c b/gdb/alloc.c
index 7c45c45..d07c81f 100644
--- a/gdb/alloc.c
+++ b/gdb/alloc.c
@@ -27,14 +27,9 @@
file can't live there.
So, it lives in gdb and is built separately by gdb and gdbserver.
- Please be aware of this when modifying it.
+ Please be aware of this when modifying it. */
- This also explains why this file includes common-defs.h and not
- defs.h or server.h -- we'd prefer to avoid depending on the
- GDBSERVER define when possible, and for this file it seemed
- simple to do so. */
-#include "gdbsupport/common-defs.h"
#include "libiberty.h"
#include "gdbsupport/errors.h"