[lldb/linux] Fix a bug in wait status handling
authorPavel Labath <pavel@labath.sk>
Wed, 29 Dec 2021 09:54:46 +0000 (10:54 +0100)
committerPavel Labath <pavel@labath.sk>
Wed, 29 Dec 2021 10:06:30 +0000 (11:06 +0100)
commitfdd741dd31814d3d4e5c29185f27a529943050d2
tree5f8ef26cb70a1be31f87a1952ca70739d8518977
parent633b002944b966ddb64c85f4a8c017a858afb4fc
[lldb/linux] Fix a bug in wait status handling

The MonitorCallback function was assuming that the "exited" argument is
set whenever a thread exits, but the caller was only setting that flag
for the main thread.

This patch deletes the argument altogether, and lets MonitorCallback
compute what it needs itself.

This is almost NFC, since previously we would end up in the
"GetSignalInfo failed for unknown reasons" branch, which was doing the
same thing -- forgetting about the thread.
lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
lldb/source/Plugins/Process/Linux/NativeProcessLinux.h