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: gdb.threads/step-after-sr-lock.exp behaving very badly


On 02/11/2014 10:45 AM, Pedro Alves wrote:
> On 02/10/2014 05:10 PM, Mark Kettenis wrote:
>> Hi Pedro,
>>
>> For some reason the test ends up doing "kill -SIGUSR1 -1".  Which
>> makes me rather unhappy as it kills all my processes on the machine...
>>
> 
>> The test hangs early on on OpenBSD (probably because the test program
>> blocks all signals).
> 
> Ah, userspace threads...  I wrote a patch to the test yesterday that makes
> it not do that, by using pthread_kill instead of the host's kill, which I
> wanted to do anyway to make the test runnable with remote targets, but,
> that made me recall why I hadn't done things that way to begin with.  The
> issue is that the prepare_to_proceed logic only triggers when the thread
> that needs to have a breakpoint stepped over was the last that reported
> an event.  That's actually a bug.  I'm working on a patch for that...

That bug and several others are now fixed, and the test is no longer
blocking signals.  Hopefully it's passing on OpenBSD now.

Thanks,
-- 
Pedro Alves


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