Add `set print array-indexes' tests for C/C++ arrays
[binutils-gdb.git] / gdb / nds32-tdep.h
index 9fd940c817a745d18da1aa8d2751fabeb5cab76d..2cabd6a173f5c4e85bdd95d66595daf6f5d1776c 100644 (file)
@@ -1,6 +1,6 @@
 /* Target-dependent code for the NDS32 architecture, for GDB.
 
-   Copyright (C) 2013-2018 Free Software Foundation, Inc.
+   Copyright (C) 2013-2022 Free Software Foundation, Inc.
    Contributed by Andes Technology Corporation.
 
    This file is part of GDB.
@@ -21,6 +21,8 @@
 #ifndef NDS32_TDEP_H
 #define NDS32_TDEP_H
 
+#include "gdbarch.h"
+
 enum nds32_regnum
 {
   /* General purpose registers.  */
@@ -40,15 +42,15 @@ enum nds32_regnum
   NDS32_FD0_REGNUM = NDS32_NUM_REGS,
 };
 
-struct gdbarch_tdep
+struct nds32_gdbarch_tdep : gdbarch_tdep
 {
   /* The guessed FPU configuration.  */
-  int fpu_freg;
+  int fpu_freg = 0;
   /* FSRs are defined as pseudo registers.  */
-  int use_pseudo_fsrs;
+  int use_pseudo_fsrs = 0;
   /* Cached regnum of the first FSR (FS0).  */
-  int fs0_regnum;
+  int fs0_regnum = 0;
   /* ELF ABI info.  */
-  int elf_abi;
+  int elf_abi = 0;
 };
 #endif /* NDS32_TDEP_H */