gdb: include gdbarch.h in all files extending gdbarch_tdep
authorSimon Marchi <simon.marchi@polymtl.ca>
Wed, 17 Nov 2021 17:13:47 +0000 (12:13 -0500)
committerSimon Marchi <simon.marchi@polymtl.ca>
Thu, 18 Nov 2021 16:30:40 +0000 (11:30 -0500)
commit76eb8ef1ce470ca71b10fae721e32d49998d87b9
tree3e575c9d62e7196d0162bc606a7aecd11ac2cec8
parent557b4d7650ffa3cd6dbfb8a56c830a1d45562d19
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
24 files changed:
gdb/avr-tdep.c
gdb/bfin-tdep.h
gdb/bpf-tdep.c
gdb/cris-tdep.h
gdb/csky-tdep.h
gdb/frv-tdep.c
gdb/ft32-tdep.h
gdb/lm32-tdep.c
gdb/m32c-tdep.c
gdb/m68hc11-tdep.c
gdb/m68k-tdep.h
gdb/mep-tdep.c
gdb/microblaze-tdep.h
gdb/mips-tdep.h
gdb/moxie-tdep.h
gdb/msp430-tdep.c
gdb/nds32-tdep.h
gdb/or1k-tdep.c
gdb/rl78-tdep.c
gdb/rx-tdep.c
gdb/s12z-tdep.c
gdb/s390-tdep.h
gdb/v850-tdep.c
gdb/z80-tdep.c