[Lldb-commits] [lldb] [LLDB][PDB] Warn if DIA plugin is requested but not available (PR #160067)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Tue Sep 23 14:49:28 PDT 2025


================
@@ -136,6 +134,21 @@ class PluginProperties : public Properties {
 
   bool UseNativeReader() const {
 #if LLVM_ENABLE_DIA_SDK && defined(_WIN32)
+    return IsNativeReaderRequested();
+#else
+    if (!IsNativeReaderRequested()) {
+      static std::once_flag g_warning_shown;
+      Debugger::ReportWarning(
+          "The DIA PDB reader was explicitly requested, but LLDB was built "
+          "without the DIA SDK. The native reader will be used instead.",
+          {}, &g_warning_shown);
----------------
JDevlieghere wrote:

No worries, thanks for the quick fix!

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


More information about the lldb-commits mailing list