[Lldb-commits] [lldb] [lldb][Module] Make eLoadScriptFromSymFileWarn behave as a "dry-run" (PR #189943)

Michael Buch via lldb-commits lldb-commits at lists.llvm.org
Sat Apr 4 00:18:15 PDT 2026


================
@@ -1330,6 +1332,33 @@ bool ModuleList::RemoveSharedModuleIfOrphaned(const ModuleWP module_wp) {
   return GetSharedModuleList().RemoveIfOrphaned(module_wp);
 }
 
+static void
+ReportScriptLoading(Debugger &debugger,
+                    llvm::ArrayRef<std::string> warned_script_paths) {
+  if (warned_script_paths.empty())
+    return;
+
+  static std::once_flag s_warn_once;
+
+  // clang-format off
+  debugger.ReportWarning(
+R"(Found executable debug scripts. To run a script in this debug session:
----------------
Michael137 wrote:

Need to find a good way of threading the `trusted`/`untrusted` through. Maybe passing a `llvm::ArrayRef<ModuleScriptLoadInfo>`, which holds that info

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


More information about the lldb-commits mailing list