[Lldb-commits] [lldb] [llvm] [lldb] Load scripts from code signed dSYM bundles (PR #189444)

Med Ismail Bennani via lldb-commits lldb-commits at lists.llvm.org
Mon Mar 30 13:47:07 PDT 2026


================
@@ -1478,10 +1478,14 @@ bool Module::LoadScriptingResourceInTarget(Target *target, Status &error) {
     if (!FileSystem::Instance().Exists(scripting_fspec))
       continue;
 
-    if (should_load == eLoadScriptFromSymFileWarn) {
-      // clang-format off
+    bool should_warn = should_load == eLoadScriptFromSymFileWarn;
+    if (should_load == eLoadScriptFromSymFileTrusted)
+      should_warn = !platform_sp->IsSymbolFileTrusted(*this);
+
+    if (should_warn) {
       debugger.ReportWarning(
           llvm::formatv(
+              // clang-format off
----------------
medismailben wrote:

switch ?

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


More information about the lldb-commits mailing list