diff options
Diffstat (limited to 'gdbserver/linux-cris-low.cc')
-rw-r--r-- | gdbserver/linux-cris-low.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gdbserver/linux-cris-low.cc b/gdbserver/linux-cris-low.cc index 882e4c6..a22ec33 100644 --- a/gdbserver/linux-cris-low.cc +++ b/gdbserver/linux-cris-low.cc @@ -28,6 +28,8 @@ public: const regs_info *get_regs_info () override; + const gdb_byte *sw_breakpoint_from_kind (int kind, int *size) override; + protected: void low_arch_setup () override; @@ -107,10 +109,10 @@ cris_target::low_cannot_fetch_register (int regno) static const unsigned short cris_breakpoint = 0xe938; #define cris_breakpoint_len 2 -/* Implementation of linux_target_ops method "sw_breakpoint_from_kind". */ +/* Implementation of target ops method "sw_breakpoint_from_kind". */ -static const gdb_byte * -cris_sw_breakpoint_from_kind (int kind, int *size) +const gdb_byte * +cris_target::sw_breakpoint_from_kind (int kind, int *size) { *size = cris_breakpoint_len; return (const gdb_byte *) &cris_breakpoint; @@ -156,7 +158,6 @@ cris_target::get_regs_info () } struct linux_target_ops the_low_target = { - cris_sw_breakpoint_from_kind, NULL, /* get_next_pcs */ 0, cris_breakpoint_at, |