Skip to content
Permalink
Browse files

[lldb] [Process/NetBSD] Use PT_STOP to stop the process [NFCI]

Differential Revision: https://reviews.llvm.org/D70060
  • Loading branch information
mgorny committed Nov 10, 2019
1 parent 636412b commit 77cc246412ca40082c0902f1300f53d29dd98c02
@@ -381,12 +381,7 @@ Status NativeProcessNetBSD::Resume(const ResumeActionList &resume_actions) {
}

Status NativeProcessNetBSD::Halt() {
Status error;

if (kill(GetID(), SIGSTOP) != 0)
error.SetErrorToErrno();

return error;
return PtraceWrapper(PT_STOP, GetID());
}

Status NativeProcessNetBSD::Detach() {
@@ -411,6 +406,10 @@ Status NativeProcessNetBSD::Signal(int signo) {
return error;
}

Status NativeProcessNetBSD::Interrupt() {
return PtraceWrapper(PT_STOP, GetID());
}

Status NativeProcessNetBSD::Kill() {
Log *log(ProcessPOSIXLog::GetLogIfAllCategoriesSet(POSIX_LOG_PROCESS));
LLDB_LOG(log, "pid {0}", GetID());
@@ -47,6 +47,8 @@ class NativeProcessNetBSD : public NativeProcessELF {

Status Signal(int signo) override;

Status Interrupt() override;

Status Kill() override;

Status GetMemoryRegionInfo(lldb::addr_t load_addr,

0 comments on commit 77cc246

Please sign in to comment.
You can’t perform that action at this time.