gdb.threads/execl.c: Ensure all threads are started before execl.
authorJohn Baldwin <jhb@FreeBSD.org>
Tue, 7 Mar 2023 00:55:22 +0000 (16:55 -0800)
committerJohn Baldwin <jhb@FreeBSD.org>
Tue, 7 Mar 2023 00:55:22 +0000 (16:55 -0800)
commit5c1e53c99cf08b55fda078902a7363823e8638cb
treef5bc3c2b8c20609e6856c1a65ab128934f8f9ec6
parentcf622c39abfa8fe1df1a019020a529a81572ca7b
gdb.threads/execl.c: Ensure all threads are started before execl.

Use a pthread_barrier to ensure all threads are started before
proceeding to the breakpoint where info threads output is checked.
gdb/testsuite/gdb.threads/execl.c