From: Tom de Vries Date: Wed, 4 Dec 2024 20:29:52 +0000 (+0100) Subject: [gdb/tdep] Remove includes of gdbsupport/common-defs.h X-Git-Tag: gdb-16-branchpoint~184 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf8d35f8d734ee34fcc814263273107313869944;p=thirdparty%2Fbinutils-gdb.git [gdb/tdep] Remove includes of gdbsupport/common-defs.h In commit 18d2988e5da ("gdb, gdbserver, gdbsupport: remove includes of early headers") all includes of gdbsupport/common-defs.h where removed, but commit c1cdee0e2c1 ("gdb: LoongArch: Add support for hardware watchpoint") reintroduced some. Fix this by removing them. Tested by doing this on x86_64-linux: ... $ make \ nat/loongarch-hw-point.o \ nat/loongarch-linux.o \ nat/loongarch-linux-hw-point.o CXX nat/loongarch-hw-point.o CXX nat/loongarch-linux.o CXX nat/loongarch-linux-hw-point.o ... Approved-By: Simon Marchi --- diff --git a/gdb/nat/loongarch-hw-point.c b/gdb/nat/loongarch-hw-point.c index 089f3bd49a9..cf5ddb68d78 100644 --- a/gdb/nat/loongarch-hw-point.c +++ b/gdb/nat/loongarch-hw-point.c @@ -18,7 +18,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include "gdbsupport/common-defs.h" #include "gdbsupport/break-common.h" #include "gdbsupport/common-regcache.h" #include "loongarch-hw-point.h" diff --git a/gdb/nat/loongarch-linux-hw-point.c b/gdb/nat/loongarch-linux-hw-point.c index fbc80fdc2a1..002553a5b51 100644 --- a/gdb/nat/loongarch-linux-hw-point.c +++ b/gdb/nat/loongarch-linux-hw-point.c @@ -18,7 +18,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include "gdbsupport/common-defs.h" #include "gdbsupport/break-common.h" #include "gdbsupport/common-regcache.h" #include "nat/linux-nat.h" diff --git a/gdb/nat/loongarch-linux.c b/gdb/nat/loongarch-linux.c index 03a0aaf9fd9..9486785a01c 100644 --- a/gdb/nat/loongarch-linux.c +++ b/gdb/nat/loongarch-linux.c @@ -18,7 +18,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include "gdbsupport/common-defs.h" #include "gdbsupport/break-common.h" #include "nat/linux-nat.h" #include "nat/loongarch-linux-hw-point.h"