[gdbserver] Use enum target_signal in _send_signal.

Pedro Alves pedro_alves@portugalmail.pt
Sat Feb 24 23:24:00 GMT 2007


Hi all,

This patch converts the send_signal function in target_ops to use enum 
target_signal
instead of the real target number.  I originally needed this for the 
WinCE gdbserver port.
Windows CE doesn't have signals support, and doesn't define SIGINT in 
any header.
Because of that, remote-utils.c wouldn't compile.  I still want to have 
support of stopping
a debuggee - this patch paves the way to that, with minimal interface 
changes.  I will handle
TARGET_SIGNAL_INT in the send_signal handler on the target side.

Ok?

Cheers,
Pedro Alves

---
gdb/gdbserver/ChangeLog:

2007-02-24  Pedro Alves  <pedro_alves@portugalmail.pt>

    * target.h (target_ops): Change parameter of send_signal from int to
    enum target_signal.
    * linux-low.c (linux_send_signal): Change parameter from int to
    enum target_signal.
    * spu-low.c (spu_send_signal): Likewise.
    * remote-utils.c (putpkt_binary): Pass TARGET_SIGNAL_INT instead
    of SIGINT.
    (input_interrupt): Likewise.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: target_signal.diff
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20070224/21bafa92/attachment.ksh>


More information about the Gdb-patches mailing list