[Lldb-commits] [lldb] [lldb][Process/FreeBSDKernelCore] Improve error handling (PR #191423)

Minsoo Choo via lldb-commits lldb-commits at lists.llvm.org
Fri Apr 10 07:58:13 PDT 2026


================
@@ -193,15 +193,18 @@ Status ProcessFreeBSDKernelCore::DoLoadCore() {
     return Status::FromErrorString(
         "ProcessFreeBSDKernelCore: no executable module set on target");
 
+  char errbuf[_POSIX2_LINE_MAX];
   m_kvm = kvm_open2(executable->GetFileSpec().GetPath().c_str(),
-                    GetCoreFile().GetPath().c_str(), O_RDWR, nullptr, nullptr);
+                    GetCoreFile().GetPath().c_str(), O_RDWR, errbuf, nullptr);
----------------
mchoo7 wrote:

That was only for `CreateInstance()`. This adds the same check to `DoLoadCore()`.

https://github.com/llvm/llvm-project/pull/191423


More information about the lldb-commits mailing list