This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Fix for PR gdb/10838
- From: Daniel Jacobowitz <drow at false dot org>
- To: Paul Pluzhnikov <ppluzhnikov at google dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 11 Nov 2009 19:42:55 -0500
- Subject: Re: [patch] Fix for PR gdb/10838
- References: <20091112003504.29C4876D6F@ppluzhnikov.mtv.corp.google.com>
On Wed, Nov 11, 2009 at 04:35:03PM -0800, Paul Pluzhnikov wrote:
> Greetings,
>
> In http://sourceware.org/bugzilla/show_bug.cgi?id=10838
> gdb attach; detach; attach sequence leaves libpthread in hosed state.
>
> The root cause turned out to be that this:
>
> td_event_emptyset (&events);
> info->td_ta_set_event_p (info->thread_agent, &events);
>
> is a no-op -- glibc ORs new event bits in, but doesn't clear any already
> set bits. To clear them, one must call td_ta_clear_event() instead.
>
> Here is a patch which fixes this in gdb and gdbserver.
>
> Tested (GDB only) on Linux/x86_64 with no regressions.
OK, thanks.
--
Daniel Jacobowitz
CodeSourcery