This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [commit] Fix bsd-uthread.c
> Date: Fri, 6 Jul 2007 07:58:02 -0400
> From: Daniel Jacobowitz <drow@false.org>
>
> On Fri, Jul 06, 2007 at 01:39:49PM +0200, Mark Kettenis wrote:
> > This fixes the problem with threads debugging I reported a few days
> > ago. The problem is that the code reads from target memory to look up
> > the thread ID. This used to be ago, since if reading from the live
> > target failed, it would read from the object file, and things would be
> > ok (even though what it read from the object file was probably just a
> > bunch of zeroes). However, with the change that Daniel recently made,
> > that no longer happens, error() gets called, and we end up in a
> > hopelessly confused state.
>
> This is at the tail end of wait, i.e. before we've popped the current
> target, right? Thanks, I see why it broke now.
Right