[lldb] [Process/FreeBSD] Set current thread ID on events
authorMichał Górny <mgorny@moritz.systems>
Wed, 12 Jan 2022 12:26:09 +0000 (13:26 +0100)
committerMichał Górny <mgorny@moritz.systems>
Wed, 12 Jan 2022 14:40:13 +0000 (15:40 +0100)
commit9a1ce35d7e7fdfa6d45fb24abc3ad30e8eb6c6f4
treec872dd93dcde676c63f46efe8d75a12c8a390c5e
parentc490f8feb71e837dd7011e7a7d8a7928507c9c76
[lldb] [Process/FreeBSD] Set current thread ID on events

Set the current thread ID to the thread where an event happened.
As a result, e.g. when a signal is delivered to a thread other than
the first one, the respective T packet refers to the signaled thread
rather than the first thread (with no stop reason).  While this doesn't
strictly make a difference to the LLDB client, it is the expected
behavior.

Differential Revision: https://reviews.llvm.org/D117103
lldb/source/Plugins/Process/FreeBSD/NativeProcessFreeBSD.cpp