This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Fix Linux attach to signalled/stopped processes
- From: Pedro Alves <pedro at codesourcery dot com>
- To: gdb-patches at sourceware dot org
- Cc: Daniel Jacobowitz <drow at false dot org>, Roland McGrath <roland at redhat dot com>, Jan Kratochvil <jan dot kratochvil at redhat dot com>, Doug Evans <dje at google dot com>, mark dot kettenis at xs4all dot nl
- Date: Sat, 12 Apr 2008 00:21:33 +0100
- Subject: Re: [patch] Fix Linux attach to signalled/stopped processes
- References: <e394668d0803311218x35c802c1g7dba5f3b48b38bc8@mail.gmail.com> <20080411221958.GA21910@caradoc.them.org> <200804112354.49254.pedro@codesourcery.com>
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