[gdbserver] Use enum target_signal in _send_signal.
Daniel Jacobowitz
drow@false.org
Sun Feb 25 02:11:00 GMT 2007
On Sat, Feb 24, 2007 at 11:23:56PM +0000, Pedro Alves wrote:
> 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?
Maybe this is the wrong abstraction entirely? Because most signals
are passed to the continue / resume support, maybe the target method
here doesn't need a signal number at all. We could replace it with
just send_interrupt.
What do you think?
--
Daniel Jacobowitz
CodeSourcery
More information about the Gdb-patches
mailing list