diff options
author | John Baldwin <jhb@FreeBSD.org> | 2023-08-14 13:38:42 -0700 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2023-08-14 13:38:42 -0700 |
commit | 57c28d45f9ad14130c8375b3b5ec6996b63574fd (patch) | |
tree | 05b0702888f882196e3f8bc58a837fdadb35e2e6 /gdb/testsuite/gdb.python | |
parent | e1d94b3b5216e9ef8a32d229fc13f62a2f1818a6 (diff) | |
download | binutils-57c28d45f9ad14130c8375b3b5ec6996b63574fd.zip binutils-57c28d45f9ad14130c8375b3b5ec6996b63574fd.tar.gz binutils-57c28d45f9ad14130c8375b3b5ec6996b63574fd.tar.bz2 |
fbsd-nat: Fix thread_alive against a running thread.
FreeBSD's ptrace fails requests with EBUSY against a running process.
Report that the thread is alive instead of dead if ptrace fails with
EBUSY.
This fixes an internal error in the gdb.threads/detach-step-over.exp
test where one process was detached while a thread in a second process
was being stepped. The core incorrectly assumed the stepping thread
had vanished and discarded the pending stepping state. When the
thread later reported a SIGTRAP from completing the step, this
triggered an assertion.
Diffstat (limited to 'gdb/testsuite/gdb.python')
0 files changed, 0 insertions, 0 deletions