This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] linux_nat_kill() compat. with linux-2.4.x
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Pedro Alves <palves at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 9 Jun 2014 12:32:45 +0200
- Subject: Re: [patch] linux_nat_kill() compat. with linux-2.4.x
- Authentication-results: sourceware.org; auth=none
- References: <20140316135916 dot GA31463 at host2 dot jankratochvil dot net> <537CA0E7 dot 6010505 at redhat dot com> <20140606201514 dot GA23334 at host2 dot jankratochvil dot net> <53958C88 dot 4070209 at redhat dot com>
On Mon, 09 Jun 2014 12:29:28 +0200, Pedro Alves wrote:
> On 06/06/2014 09:15 PM, Jan Kratochvil wrote:
> > It also may hang somewhere else and not in linux_nat_kill().
>
> Right. I'd say it's much more likely (even though not very likely, tbc)
> that we see hangs elsewhere than in linux_nat_kill now. E.g., GDB core's
> is_executing state getting out of sync with lwp->stopped.
>
> > This patch made GDB foolproof against any state of inferior when killing the
> > inferior so that GDB could no longer hang. But it would hide some possible
> > remaining bugs in the code (which may be causing the GDB hangs).
>
> Right, I'd rather just fix the GDB bugs, and only consider such a patch
> if we need to work around a kernel bug (though I'd rather just
> ignore very old kernels like 2.4 by now).
OK, so according to the approach chosen above considering this patch dropped.
Jan