[lldb] [llgs] Fix signo sent with fork/vfork/vforkdone events
authorMichał Górny <mgorny@moritz.systems>
Mon, 20 Jun 2022 14:50:21 +0000 (16:50 +0200)
committerMichał Górny <mgorny@moritz.systems>
Tue, 21 Jun 2022 17:47:30 +0000 (19:47 +0200)
commitd6b3de72566f874f198b2ddcecbec53e95c623fe
tree910e6e7ec8812ff19777dffce2d5c43dd85bcabb
parent5b04eb23ae1a4db074b7ddc2e0c136d008fb5bc7
[lldb] [llgs] Fix signo sent with fork/vfork/vforkdone events

Fix ThreadStopInfo struct to include the signal number for all events.
Since signo was not included in the details for fork, vfork
and vforkdone stops, the code incidentally referenced the wrong union
member, resulting in wrong signo being sent.

Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.llvm.org/D127193
lldb/include/lldb/Host/Debug.h
lldb/source/Plugins/Process/FreeBSD/NativeThreadFreeBSD.cpp
lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp
lldb/source/Plugins/Process/NetBSD/NativeThreadNetBSD.cpp
lldb/source/Plugins/Process/Windows/Common/NativeProcessWindows.cpp
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp
lldb/test/API/tools/lldb-server/TestGdbRemoteFork.py
lldb/tools/debugserver/source/RNBRemote.cpp