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
#include "dis-asm.h"
#include "objfiles.h"
#include <algorithm>
+#include "gdbarch.h"
/* AVR Background:
#ifndef BFIN_TDEP_H
#define BFIN_TDEP_H
+#include "gdbarch.h"
+
enum gdb_regnum {
/* Core Registers */
BFIN_R0_REGNUM = 0,
#include "osabi.h"
#include "target-descriptions.h"
#include "remote.h"
+#include "gdbarch.h"
\f
/* eBPF registers. */
#ifndef CRIS_TDEP_H
#define CRIS_TDEP_H
+#include "gdbarch.h"
+
/* CRIS architecture specific information. */
struct cris_gdbarch_tdep : gdbarch_tdep
{
#ifndef CSKY_TDEP_H
#define CSKY_TDEP_H
+#include "gdbarch.h"
+
/* How to interpret the contents of the link register. */
enum lr_type_t
{
#include "solib.h"
#include "frv-tdep.h"
#include "objfiles.h"
+#include "gdbarch.h"
struct frv_unwind_cache /* was struct frame_extra_info */
{
#ifndef FT32_TDEP_H
#define FT32_TDEP_H
+#include "gdbarch.h"
+
struct ft32_gdbarch_tdep : gdbarch_tdep
{
/* Type for a pointer to a function. Used for the type of PC. */
#include "reggroups.h"
#include "opcodes/lm32-desc.h"
#include <algorithm>
+#include "gdbarch.h"
/* Macros to extract fields from an instruction. */
#define LM32_OPCODE(insn) ((insn >> 26) & 0x3f)
#include "reggroups.h"
#include "prologue-value.h"
#include "objfiles.h"
+#include "gdbarch.h"
\f
/* The m32c tdep structure. */
#include "arch-utils.h"
#include "regcache.h"
#include "reggroups.h"
+#include "gdbarch.h"
#include "target.h"
#include "opcode/m68hc11.h"
#ifndef M68K_TDEP_H
#define M68K_TDEP_H
+#include "gdbarch.h"
+
struct frame_info;
/* Register numbers of various important registers. */
#include "prologue-value.h"
#include "cgen/bitset.h"
#include "infcall.h"
+#include "gdbarch.h"
/* Get the user's customized MeP coprocessor register names from
libopcodes. */
#ifndef MICROBLAZE_TDEP_H
#define MICROBLAZE_TDEP_H 1
+#include "gdbarch.h"
/* Microblaze architecture-specific information. */
struct microblaze_gdbarch_tdep : gdbarch_tdep
#define MIPS_TDEP_H
#include "objfiles.h"
+#include "gdbarch.h"
struct gdbarch;
#ifndef MOXIE_TDEP_H
#define MOXIE_TDEP_H
+#include "gdbarch.h"
+
struct moxie_gdbarch_tdep : gdbarch_tdep
{
/* gdbarch target dependent data here. Currently unused for MOXIE. */
#include "gdbcore.h"
#include "dwarf2/frame.h"
#include "reggroups.h"
+#include "gdbarch.h"
#include "elf/msp430.h"
#include "opcode/msp430-decode.h"
#ifndef NDS32_TDEP_H
#define NDS32_TDEP_H
+#include "gdbarch.h"
+
enum nds32_regnum
{
/* General purpose registers. */
#include "target-descriptions.h"
#include <inttypes.h>
#include "dis-asm.h"
+#include "gdbarch.h"
/* OpenRISC specific includes. */
#include "or1k-tdep.h"
#include "gdbcore.h"
#include "dwarf2/frame.h"
#include "reggroups.h"
+#include "gdbarch.h"
#include "elf/rl78.h"
#include "elf-bfd.h"
#include "dwarf2/frame.h"
#include "remote.h"
#include "target-descriptions.h"
+#include "gdbarch.h"
#include "elf/rx.h"
#include "elf-bfd.h"
#include "trad-frame.h"
#include "remote.h"
#include "opcodes/s12z-opc.h"
+#include "gdbarch.h"
/* Two of the registers included in S12Z_N_REGISTERS are
the CCH and CCL "registers" which are just views into
#define S390_TDEP_H
#include "prologue-value.h"
+#include "gdbarch.h"
enum s390_abi_kind
{
#include "osabi.h"
#include "elf-bfd.h"
#include "elf/v850.h"
+#include "gdbarch.h"
enum
{
#include "inferior.h"
#include "objfiles.h"
#include "symfile.h"
+#include "gdbarch.h"
#include "z80-tdep.h"
#include "features/z80.c"