From 76eb8ef1ce470ca71b10fae721e32d49998d87b9 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Wed, 17 Nov 2021 12:13:47 -0500 Subject: gdb: include gdbarch.h in all files extending gdbarch_tdep Commit 345bd07cce33 ("gdb: fix gdbarch_tdep ODR violation") made a bunch of files define a *_gdbarch_tdep class that inherits from a gdbarch_tdep base. But some of these files don't include gdbarch.h, where gdbarch_tdep is defined. This may cause build errors if gdbarch.h isn't already included by chance by some other header file. Avoid this by making them include gdbarch.h. Change-Id: If433d302007e274daa4f656cfc94f769cf1aa68a --- gdb/cris-tdep.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gdb/cris-tdep.h') diff --git a/gdb/cris-tdep.h b/gdb/cris-tdep.h index 9b62294..57a3aed 100644 --- a/gdb/cris-tdep.h +++ b/gdb/cris-tdep.h @@ -23,6 +23,8 @@ #ifndef CRIS_TDEP_H #define CRIS_TDEP_H +#include "gdbarch.h" + /* CRIS architecture specific information. */ struct cris_gdbarch_tdep : gdbarch_tdep { -- cgit v1.1