[patch] Fix Linux attach to signalled/stopped processes
Pedro Alves
pedro@codesourcery.com
Sat Apr 12 00:19:00 GMT 2008
A Friday 11 April 2008 23:54:48, Pedro Alves wrote:
> A Friday 11 April 2008 23:19:58, Daniel Jacobowitz wrote:
> > Any idea how to do this?
>
> Not really. I'm don't think we can context-switch
> stop_signal in all-stop mode. At least not without more work
> in infrun.c. I'd have to think and try a bit more. My current
> patch leaves it global in all-stop mode. Maybe you just
> need a event_ptid, similar to trap_ptid, or just resend the signal
> to the main thread.
Actually, get_last_target_status should give you the ptid
you want, I think.
--
Pedro Alves
More information about the Gdb-patches
mailing list