diff options
Diffstat (limited to 'gdb/tic6x-tdep.h')
-rw-r--r-- | gdb/tic6x-tdep.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gdb/tic6x-tdep.h b/gdb/tic6x-tdep.h index 7d5587a..bb79a0d 100644 --- a/gdb/tic6x-tdep.h +++ b/gdb/tic6x-tdep.h @@ -20,6 +20,8 @@ #ifndef TIC6X_TDEP_H #define TIC6X_TDEP_H +#include "gdbarch.h" + enum { TIC6X_A4_REGNUM = 4, @@ -44,15 +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 */ |