gdb/arm: Unwind Non-Secure callbacks from Secure
[binutils-gdb.git] / gdb / tic6x-tdep.h
index 3854f47f7d88f4a44146ec18458475cda638d162..d9b9644f8df88f08d8938fe5c9f5595785b89822 100644 (file)
@@ -1,5 +1,5 @@
 /* GNU/Linux on  TI C6x target support.
-   Copyright (C) 2011-2019 Free Software Foundation, Inc.
+   Copyright (C) 2011-2022 Free Software Foundation, Inc.
    Contributed by Yao Qi <yao@codesourcery.com>
 
    This file is part of GDB.
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
+#ifndef TIC6X_TDEP_H
+#define TIC6X_TDEP_H
+
+#include "gdbarch.h"
+
 enum
 {
   TIC6X_A4_REGNUM = 4,
@@ -41,13 +46,15 @@ extern const gdb_byte tic6x_bkpt_illegal_opcode_be[];
 extern const gdb_byte tic6x_bkpt_illegal_opcode_le[];
 
 /* Target-dependent structure in gdbarch.  */
-struct gdbarch_tdep
+struct tic6x_gdbarch_tdep : gdbarch_tdep
 {
   /* Return the expected next PC if FRAME is stopped at a syscall
      instruction.  */
-  CORE_ADDR (*syscall_next_pc) (struct frame_info *frame);
+  CORE_ADDR (*syscall_next_pc) (struct frame_info *frame) = nullptr;
 
-  const gdb_byte *breakpoint; /* Breakpoint instruction.  */
+  const gdb_byte *breakpoint = nullptr; /* Breakpoint instruction.  */
 
-  int has_gp; /* Has general purpose registers A16 - A31 and B16 - B31.  */
+  int has_gp = 0; /* Has general purpose registers A16 - A31 and B16 - B31.  */
 };
+
+#endif /* TIC6X_TDEP_H */