[Lldb-commits] [lldb] 841b26f - Don't flag memory-only mach-o corefiles as invalid

Jason Molenda via lldb-commits lldb-commits at lists.llvm.org
Fri Jan 27 09:41:02 PST 2023


Author: Jason Molenda
Date: 2023-01-27T09:40:54-08:00
New Revision: 841b26f1d80f69c45bbf2426761f3e3b9c927d86

URL: https://github.com/llvm/llvm-project/commit/841b26f1d80f69c45bbf2426761f3e3b9c927d86
DIFF: https://github.com/llvm/llvm-project/commit/841b26f1d80f69c45bbf2426761f3e3b9c927d86.diff

LOG: Don't flag memory-only mach-o corefiles as invalid

It is possible to have a memory-only mach-o corefile, with the
threads provided by an os-plugin thread provider, or a scripted
process, in Python.

Differential Revision: https://reviews.llvm.org/D142662
rdar://102579544

Added: 
    

Modified: 
    lldb/source/Plugins/Process/mach-core/ProcessMachCore.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Plugins/Process/mach-core/ProcessMachCore.cpp b/lldb/source/Plugins/Process/mach-core/ProcessMachCore.cpp
index fbf57fc3bf8e3..11e9b0e369f09 100644
--- a/lldb/source/Plugins/Process/mach-core/ProcessMachCore.cpp
+++ b/lldb/source/Plugins/Process/mach-core/ProcessMachCore.cpp
@@ -483,13 +483,6 @@ Status ProcessMachCore::DoLoadCore() {
     return error;
   }
 
-  if (core_objfile->GetNumThreadContexts() == 0) {
-    error.SetErrorString("core file doesn't contain any LC_THREAD load "
-                         "commands, or the LC_THREAD architecture is not "
-                         "supported in this lldb");
-    return error;
-  }
-
   SetCanJIT(false);
 
   // The corefile's architecture is our best starting point.


        


More information about the lldb-commits mailing list