[PATCH] gdb/testsuite: fix race condition in gdb.python/py-thread-exited.exp

Andrew Burgess aburgess@redhat.com
Wed Aug 16 14:04:33 GMT 2023


Tom Tromey <tromey@adacore.com> writes:

>>>>>> "Andrew" == Andrew Burgess <aburgess@redhat.com> writes:
>
> Andrew> I could fix this by having the .exp file not care about the thread
> Andrew> order, or by changing the C file to force the order. I chose the
> Andrew> later, and added a pthread_barrier_t to ensure the threads exit in the
> Andrew> correct order.
>
> Looks good to me, thanks.

Pushed.

Thanks,
Andrew



More information about the Gdb-patches mailing list