summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process
diff options
context:
space:
mode:
authorMichal Gorny <mgorny@gentoo.org>2019-07-25 20:27:40 +0000
committerMichal Gorny <mgorny@gentoo.org>2019-07-25 20:27:40 +0000
commite1c159e86ac2f109d0d4d9342721ce78532660cf (patch)
tree9fd189a8931eab8048cc48c4f94866ad80a0f7cc /lldb/source/Plugins/Process
parentaa205957ff6b977978642544951d133d47294d92 (diff)
downloadbcm5719-llvm-e1c159e86ac2f109d0d4d9342721ce78532660cf.tar.gz
bcm5719-llvm-e1c159e86ac2f109d0d4d9342721ce78532660cf.zip
[lldb] [Process/NetBSD] Report stopped process on SIGSTOP
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. Differential Revision: https://reviews.llvm.org/D65289 llvm-svn: 367047
Diffstat (limited to 'lldb/source/Plugins/Process')
-rw-r--r--lldb/source/Plugins/Process/NetBSD/NativeProcessNetBSD.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lldb/source/Plugins/Process/NetBSD/NativeProcessNetBSD.cpp b/lldb/source/Plugins/Process/NetBSD/NativeProcessNetBSD.cpp
index ecba338d26f..edadfa36f85 100644
--- a/lldb/source/Plugins/Process/NetBSD/NativeProcessNetBSD.cpp
+++ b/lldb/source/Plugins/Process/NetBSD/NativeProcessNetBSD.cpp
@@ -195,6 +195,7 @@ void NativeProcessNetBSD::MonitorSIGSTOP(lldb::pid_t pid) {
SIGSTOP, &info.psi_siginfo);
}
}
+ SetState(StateType::eStateStopped, true);
}
}
OpenPOWER on IntegriCloud