[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
Tue Apr 7 06:51:32 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;
----------------
Michael137 wrote:
My idea was to only report the first warning once per debugger session. (note there are 2 `ReportWarning` here)
https://github.com/llvm/llvm-project/pull/189943
More information about the lldb-commits
mailing list