From 18d2988e5da8919514c76b83e2c0b56e439018bd Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Tue, 26 Mar 2024 15:06:46 -0400 Subject: 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 --- gdb/make-init-c | 1 - 1 file changed, 1 deletion(-) (limited to 'gdb/make-init-c') diff --git a/gdb/make-init-c b/gdb/make-init-c index 7190e69..3458333 100755 --- a/gdb/make-init-c +++ b/gdb/make-init-c @@ -41,7 +41,6 @@ set -e echo "/* Do not modify this file. */" echo "/* It is created automatically by the Makefile. */" -echo "#include \"defs.h\" /* For initialize_file_ftype. */" echo "#include " echo "" sed -n -e 's/^\(_initialize_[a-zA-Z0-9_]*\) ()$/\1/p' "$@" | while read -r name; do -- cgit v1.1