mgorny created this revision. mgorny added reviewers: labath, krytarowski. Herald added a project: LLDB.
Mark the process as stopped when SIGSTOP arrives. This is necessary for lldb-server to generate correct response to 'process interrupt', and therefore to prevent the whole stack crashing when process is stopped. Thanks to Pavel Labath for the tip. Repository: rLLDB LLDB https://reviews.llvm.org/D65289 Files: lldb/source/Plugins/Process/NetBSD/NativeProcessNetBSD.cpp Index: lldb/source/Plugins/Process/NetBSD/NativeProcessNetBSD.cpp =================================================================== --- lldb/source/Plugins/Process/NetBSD/NativeProcessNetBSD.cpp +++ lldb/source/Plugins/Process/NetBSD/NativeProcessNetBSD.cpp @@ -203,6 +203,7 @@ SIGSTOP, &info.psi_siginfo); } } + SetState(StateType::eStateStopped, true); } }
Index: lldb/source/Plugins/Process/NetBSD/NativeProcessNetBSD.cpp =================================================================== --- lldb/source/Plugins/Process/NetBSD/NativeProcessNetBSD.cpp +++ lldb/source/Plugins/Process/NetBSD/NativeProcessNetBSD.cpp @@ -203,6 +203,7 @@ SIGSTOP, &info.psi_siginfo); } } + SetState(StateType::eStateStopped, true); } }
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits