https://github.com/Michael137 updated 
https://github.com/llvm/llvm-project/pull/171820

>From 8591030480b7f752e94ec289be0ba1fb306caa6f Mon Sep 17 00:00:00 2001
From: Michael Buch <[email protected]>
Date: Thu, 11 Dec 2025 12:42:10 +0000
Subject: [PATCH] [lldb][Module] Only log SDK search error once per debugger
 session

---
 lldb/source/Core/Module.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lldb/source/Core/Module.cpp b/lldb/source/Core/Module.cpp
index da2c188899f03..3580918980bbd 100644
--- a/lldb/source/Core/Module.cpp
+++ b/lldb/source/Core/Module.cpp
@@ -1569,7 +1569,9 @@ void Module::RegisterXcodeSDK(llvm::StringRef sdk_name,
 
   if (!sdk_path_or_err) {
     Debugger::ReportError("Error while searching for Xcode SDK: " +
-                          toString(sdk_path_or_err.takeError()));
+                              toString(sdk_path_or_err.takeError()),
+                          /*debugger_id=*/std::nullopt,
+                          GetDiagnosticOnceFlag(sdk_name));
     return;
   }
 

_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to