aboutsummaryrefslogtreecommitdiff
path: root/gdb/moxie-tdep.h
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2021-11-17 12:13:47 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2021-11-18 11:30:40 -0500
commit76eb8ef1ce470ca71b10fae721e32d49998d87b9 (patch)
tree3e575c9d62e7196d0162bc606a7aecd11ac2cec8 /gdb/moxie-tdep.h
parent557b4d7650ffa3cd6dbfb8a56c830a1d45562d19 (diff)
downloadbinutils-76eb8ef1ce470ca71b10fae721e32d49998d87b9.zip
binutils-76eb8ef1ce470ca71b10fae721e32d49998d87b9.tar.gz
binutils-76eb8ef1ce470ca71b10fae721e32d49998d87b9.tar.bz2
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
Diffstat (limited to 'gdb/moxie-tdep.h')
-rw-r--r--gdb/moxie-tdep.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/moxie-tdep.h b/gdb/moxie-tdep.h
index 4e6bcd1..bd9840f 100644
--- a/gdb/moxie-tdep.h
+++ b/gdb/moxie-tdep.h
@@ -20,6 +20,8 @@
#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. */