This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [gdbserver] Use enum target_signal in _send_signal.
- From: Daniel Jacobowitz <drow at false dot org>
- To: Pedro Alves <pedro_alves at portugalmail dot pt>
- Cc: gdb-patches at sourceware dot org
- Date: Sat, 24 Feb 2007 21:11:35 -0500
- Subject: Re: [gdbserver] Use enum target_signal in _send_signal.
- References: <45E0C90C.7030101@portugalmail.pt>
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