This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [commit] Fix bsd-uthread.c
- From: Daniel Jacobowitz <drow at false dot org>
- To: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 6 Jul 2007 07:58:02 -0400
- Subject: Re: [commit] Fix bsd-uthread.c
- References: <200707061139.l66BdnrB022359@brahms.sibelius.xs4all.nl>
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.
--
Daniel Jacobowitz
CodeSourcery