File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
lldb/source/Plugins/Process/NetBSD Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -381,12 +381,7 @@ Status NativeProcessNetBSD::Resume(const ResumeActionList &resume_actions) {
381
381
}
382
382
383
383
Status NativeProcessNetBSD::Halt () {
384
- Status error;
385
-
386
- if (kill (GetID (), SIGSTOP) != 0 )
387
- error.SetErrorToErrno ();
388
-
389
- return error;
384
+ return PtraceWrapper (PT_STOP, GetID ());
390
385
}
391
386
392
387
Status NativeProcessNetBSD::Detach () {
@@ -411,6 +406,10 @@ Status NativeProcessNetBSD::Signal(int signo) {
411
406
return error;
412
407
}
413
408
409
+ Status NativeProcessNetBSD::Interrupt () {
410
+ return PtraceWrapper (PT_STOP, GetID ());
411
+ }
412
+
414
413
Status NativeProcessNetBSD::Kill () {
415
414
Log *log (ProcessPOSIXLog::GetLogIfAllCategoriesSet (POSIX_LOG_PROCESS));
416
415
LLDB_LOG (log, " pid {0}" , GetID ());
Original file line number Diff line number Diff line change @@ -47,6 +47,8 @@ class NativeProcessNetBSD : public NativeProcessELF {
47
47
48
48
Status Signal (int signo) override ;
49
49
50
+ Status Interrupt () override ;
51
+
50
52
Status Kill () override ;
51
53
52
54
Status GetMemoryRegionInfo (lldb::addr_t load_addr,
You can’t perform that action at this time.
0 commit comments