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, 13 Nov 2023 14:16:11 +0000 (14:16 +0000)
commit7c6cb899c759fb00dc1a95a2ff904220fca1a9dc
treec92803a375ab9fa3125e3040fd365be94513accd
parent9d124749d2a6fce91647b2b00475b6293c1c59df
Testcases for stepping over thread exit syscall (PR gdb/27338)

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>
Reviewed-By: Andrew Burgess <aburgess@redhat.com>
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