[Lldb-commits] [lldb] r305794 - Correct syntax mistake hidden in assert(3)
Kamil Rytarowski via lldb-commits
lldb-commits at lists.llvm.org
Tue Jun 20 06:51:07 PDT 2017
Author: kamil
Date: Tue Jun 20 08:51:06 2017
New Revision: 305794
URL: http://llvm.org/viewvc/llvm-project?rev=305794&view=rev
Log:
Correct syntax mistake hidden in assert(3)
wait_status cannot be compared with WaitStatus::Stop,
go for wait_status.type.
Modified:
lldb/trunk/source/Plugins/Process/NetBSD/NativeProcessNetBSD.cpp
Modified: lldb/trunk/source/Plugins/Process/NetBSD/NativeProcessNetBSD.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/NetBSD/NativeProcessNetBSD.cpp?rev=305794&r1=305793&r2=305794&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/NetBSD/NativeProcessNetBSD.cpp (original)
+++ lldb/trunk/source/Plugins/Process/NetBSD/NativeProcessNetBSD.cpp Tue Jun 20 08:51:06 2017
@@ -845,7 +845,7 @@ void NativeProcessNetBSD::SigchldHandler
if (exited)
MonitorExited(wait_pid, wait_status);
else {
- assert(wait_status == WaitStatus::Stop);
+ assert(wait_status.type == WaitStatus::Stop);
MonitorCallback(wait_pid, wait_status.status);
}
}
More information about the lldb-commits
mailing list