[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
Thu Apr 2 01:08:11 PDT 2026


================
@@ -5387,6 +5395,34 @@ void Target::NotifyBreakpointChanged(
     BroadcastEvent(Target::eBroadcastBitBreakpointChanged, breakpoint_data_sp);
 }
 
+void Target::ReportScriptLoading(
+    const llvm::SmallVector<std::string> &warned_script_paths) {
+  if (warned_script_paths.empty())
+    return;
+
+  static std::once_flag s_warn_once;
+
+  auto &debugger = GetDebugger();
+
+  // clang-format off
+  debugger.ReportWarning(
----------------
Michael137 wrote:

There is `ReportInfo`. I'd rather do/discuss that in a separate PR. FWIW the enum is called `eLoadScriptFromSymFileWarn`. So it aligns with that. But since we making it more of a "dry-run", making it a `note:` is reasonable

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


More information about the lldb-commits mailing list