[Lldb-commits] [PATCH] D89182: [lldb] [Process/FreeBSDRemote] Kill process via PT_KILL
Michał Górny via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Sat Oct 10 00:39:48 PDT 2020
mgorny created this revision.
mgorny added reviewers: emaste, labath, krytarowski.
mgorny requested review of this revision.
Use PT_KILL to kill the stopped process. This ensures that the process
termination is reported properly and fixes delay/error on killing it.
https://reviews.llvm.org/D89182
Files:
lldb/source/Plugins/Process/FreeBSDRemote/NativeProcessFreeBSD.cpp
Index: lldb/source/Plugins/Process/FreeBSDRemote/NativeProcessFreeBSD.cpp
===================================================================
--- lldb/source/Plugins/Process/FreeBSDRemote/NativeProcessFreeBSD.cpp
+++ lldb/source/Plugins/Process/FreeBSDRemote/NativeProcessFreeBSD.cpp
@@ -404,12 +404,7 @@
break;
}
- if (kill(GetID(), SIGKILL) != 0) {
- error.SetErrorToErrno();
- return error;
- }
-
- return error;
+ return PtraceWrapper(PT_KILL, m_pid);
}
Status NativeProcessFreeBSD::GetMemoryRegionInfo(lldb::addr_t load_addr,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89182.297391.patch
Type: text/x-patch
Size: 555 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20201010/1f21c37c/attachment-0001.bin>
More information about the lldb-commits
mailing list