]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Testcases for stepping over thread exit syscall (PR gdb/27338)
authorSimon Marchi <simon.marchi@efficios.com>
Fri, 5 Feb 2021 21:42:32 +0000 (16:42 -0500)
committerPedro Alves <pedro@palves.net>
Mon, 18 Jul 2022 16:33:32 +0000 (17:33 +0100)
commit2282f01fb593bd8771df650a1f796e4d8636aad9
tree23c1e0bad27e4386ae3404df7f312267770c8b25
parentabd61a49e0b39e3fb6a0f129b34ecc6fd5a4f2b7
Testcases for stepping over thread exit syscall (PR gdb/27338)

- New in this series version:

 - gdb.threads/step-over-thread-exit.exp has a couple new testing axes:

   - non-stop vs all-stop.

   - in non-stop have the testcase explicitly stop all threads in
     non-stop mode, vs not doing that.

 - bail out of gdb.threads/step-over-thread-exit.exp early on FAIL, to
   avoid cascading timeouts.

Add new gdb.threads/step-over-thread-exit.exp and
gdb.threads/step-over-thread-exit-while-stop-all-threads.exp
testcases, exercising stepping over thread exit syscall.  These make
use of lib/my-syscalls.S to define the exit syscall.

Co-authored-by: Pedro Alves <pedro@palves.net>
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=27338
Change-Id: Ie8b2c5747db99b7023463a897a8390d9e814a9c9
gdb/testsuite/gdb.threads/step-over-thread-exit-while-stop-all-threads.c [new file with mode: 0644]
gdb/testsuite/gdb.threads/step-over-thread-exit-while-stop-all-threads.exp [new file with mode: 0644]
gdb/testsuite/gdb.threads/step-over-thread-exit.c [new file with mode: 0644]
gdb/testsuite/gdb.threads/step-over-thread-exit.exp [new file with mode: 0644]
gdb/testsuite/lib/my-syscalls.S
gdb/testsuite/lib/my-syscalls.h