[Lldb-commits] [lldb] [lldb][windows] print stop reason if MSVC's runtime check fails (PR #185473)
via lldb-commits
lldb-commits at lists.llvm.org
Mon Mar 9 11:59:54 PDT 2026
================
@@ -0,0 +1,16 @@
+// clang-format off
+
+// Test that lldb prints MSVC's runtime checks exceptions as stop reasons.
+
+// REQUIRES: msvc
+
+// RUN: %msvc_cl /nologo /Od /Zi /MDd /RTC1 -o %t.exe %s
+// RUN: %lldb -f %t.exe -b -o 'r' 2>&1 | FileCheck %s
+// CHECK: thread #1, stop reason = Run-time check failure: The variable 'x' is being used without being initialized.
+
+#include <iostream>
+
+int main() {
+ int x;
+ printf("%d\n", x);
+}
----------------
Nerixyz wrote:
```suggestion
}
```
https://github.com/llvm/llvm-project/pull/185473
More information about the lldb-commits
mailing list