Fix nto,spu and win32 builds of GDBServer.
authorAntoine Tremblay <antoine.tremblay@ericsson.com>
Fri, 23 Oct 2015 17:20:39 +0000 (13:20 -0400)
committerAntoine Tremblay <antoine.tremblay@ericsson.com>
Fri, 23 Oct 2015 17:21:11 +0000 (13:21 -0400)
commitfb78e89c56db8fddf3044cdc644d6e799ae97b3a
tree873c7f2624b4e9498612a24b6e6722791fb2cf0e
parent2e6ee069ae81f3b5140059f6b997ccb0dcd1684e
Fix nto,spu and win32 builds of GDBServer.

This patch fixes the build that was broken by :
https://sourceware.org/ml/gdb-patches/2015-10/msg00369.html

It implements the sw_breakpoint_from_kind operation on these targets and removes
the calls to set_breakpoint_data.

Compiliation tested on win32.

Not tested : nto, spu.

gdb/gdbserver/ChangeLog:

* nto-low.c (nto_sw_breakpoint_from_kind): New function.
(struct target_ops) <sw_breakpoint_from_kind>: Initialize.
(initialize_low): Remove set_breakpoint_data call.
* spu-low.c (spu_sw_breakpoint_from_kind): New function.
(struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
(initialize_low): Remove set_breakpoint_data call.
* win32-low.c (win32_sw_breakpoint_from_kind): New function.
(struct target_ops) <sw_breakpoint_from_kind>: Initialize.
(initialize_low): Remove set_breakpoint_data call.
gdb/gdbserver/ChangeLog
gdb/gdbserver/nto-low.c
gdb/gdbserver/spu-low.c
gdb/gdbserver/win32-low.c