This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Fix for PR gdb/10838


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]