This is the mail archive of the
archer@sourceware.org
mailing list for the Archer project.
Re: [BUG] gdb: quit hangs after step into signal handler
- From: Roland McGrath <roland at redhat dot com>
- To: Oleg Nesterov <oleg at redhat dot com>
- Cc: archer at sourceware dot org
- Date: Tue, 21 Sep 2010 16:53:56 -0700 (PDT)
- Subject: Re: [BUG] gdb: quit hangs after step into signal handler
- References: <20100920211715.GA10574@redhat.com>
> Probably gdb should just do kill(tracee, SIGKILL) when it wants
> to terminate the tracee.
That's what I recommend. (You only need one SIGKILL per process, not one
for each thread. But if you still support linuxthreads, that will probably
need one for each thread.) Even if you were paranoid about some old kernel
where PTRACE_KILL might work better (dubious if there are any such, but
that's why it's paranoia), you could do this before PTRACE_KILL and it
should certainly be fine everywhere.
Thanks,
Roland