diff options
Diffstat (limited to 'gdb/nds32-tdep.c')
-rw-r--r-- | gdb/nds32-tdep.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gdb/nds32-tdep.c b/gdb/nds32-tdep.c index 618a482..43c54cc 100644 --- a/gdb/nds32-tdep.c +++ b/gdb/nds32-tdep.c @@ -282,9 +282,9 @@ nds32_frame_align (struct gdbarch *gdbarch, CORE_ADDR sp) } /* The same insn machine code is used for little-endian and big-endian. */ -static const gdb_byte break_insn[] = { 0xEA, 0x00 }; +constexpr gdb_byte nds32_break_insn[] = { 0xEA, 0x00 }; -GDBARCH_BREAKPOINT_MANIPULATION (nds32, break_insn) +typedef BP_MANIPULATION (nds32_break_insn) nds32_breakpoint; /* Implement the "dwarf2_reg_to_regnum" gdbarch method. */ @@ -2143,7 +2143,10 @@ nds32_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) set_gdbarch_skip_prologue (gdbarch, nds32_skip_prologue); set_gdbarch_inner_than (gdbarch, core_addr_lessthan); - SET_GDBARCH_BREAKPOINT_MANIPULATION (nds32); + set_gdbarch_breakpoint_kind_from_pc (gdbarch, + nds32_breakpoint::kind_from_pc); + set_gdbarch_sw_breakpoint_from_kind (gdbarch, + nds32_breakpoint::bp_from_kind); set_gdbarch_frame_align (gdbarch, nds32_frame_align); frame_base_set_default (gdbarch, &nds32_frame_base); |