This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [gdbserver] Use enum target_signal in _send_signal.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]