X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdbserver%2Flinux-cris-low.cc;h=a22ec3342dcae1d0976f1e517abd046c2d236c2d;hb=3ca4edb6617353defacd3bf3a4ee3d458238419e;hp=882e4c61eb09c9fe0cfde427f07981130448ced3;hpb=06250e4e67c0f40a00526afac642b4c345b56750;p=deliverable%2Fbinutils-gdb.git diff --git a/gdbserver/linux-cris-low.cc b/gdbserver/linux-cris-low.cc index 882e4c61eb..a22ec3342d 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,