diff options
Diffstat (limited to 'gdb/nios2-tdep.h')
-rw-r--r-- | gdb/nios2-tdep.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gdb/nios2-tdep.h b/gdb/nios2-tdep.h index af36c4187e9..1a4e5ab3ff2 100644 --- a/gdb/nios2-tdep.h +++ b/gdb/nios2-tdep.h @@ -20,6 +20,9 @@ #ifndef NIOS2_TDEP_H #define NIOS2_TDEP_H +/* Nios II ISA specific encodings and macros. */ +#include "opcode/nios2.h" + /* Registers. */ #define NIOS2_Z_REGNUM 0 /* Zero */ #define NIOS2_R2_REGNUM 2 /* used for return value */ @@ -61,13 +64,15 @@ /* Size of an instruction, in bytes. */ #define NIOS2_OPCODE_SIZE 4 +#define NIOS2_CDX_OPCODE_SIZE 2 /* Target-dependent structure in gdbarch. */ struct gdbarch_tdep { /* Assumes FRAME is stopped at a syscall (trap) instruction; returns the expected next PC. */ - CORE_ADDR (*syscall_next_pc) (struct frame_info *frame); + CORE_ADDR (*syscall_next_pc) (struct frame_info *frame, + const struct nios2_opcode *op); /* Offset to PC value in jump buffer. If this is negative, longjmp support will be disabled. */ |