[all-commits] [llvm/llvm-project] fdd741: [lldb/linux] Fix a bug in wait status handling
Pavel Labath via All-commits
all-commits at lists.llvm.org
Wed Dec 29 02:25:05 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: fdd741dd31814d3d4e5c29185f27a529943050d2
https://github.com/llvm/llvm-project/commit/fdd741dd31814d3d4e5c29185f27a529943050d2
Author: Pavel Labath <pavel at labath.sk>
Date: 2021-12-29 (Wed, 29 Dec 2021)
Changed paths:
M lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
M lldb/source/Plugins/Process/Linux/NativeProcessLinux.h
Log Message:
-----------
[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.
More information about the All-commits
mailing list