[Lldb-commits] [lldb] [lldb][Windows] Support OutputDebugString (PR #196395)

Charles Zablit via lldb-commits lldb-commits at lists.llvm.org
Fri May 8 08:48:15 PDT 2026


================
@@ -312,9 +312,9 @@ void DebuggerThread::DebugLoop() {
           // detaching with leaving breakpoint exception event on the queue may
           // cause target process to crash so process events as possible since
           // target threads are running at this time, there is possibility to
-          // have some breakpoint exception between last WaitForDebugEvent and
+          // have some breakpoint exception between last WaitForDebugEventEx and
           // DebugActiveProcessStop but ignore for now.
-          while (WaitForDebugEvent(&dbe, 0)) {
+          while (WaitForDebugEventEx(&dbe, 0)) {
----------------
charles-zablit wrote:

While looking at the docs, I've noticed that `WaitForDebugEventEx` is only available for Windows 10 and up.

Should we try to do feature detection like we did for the ConPTY?

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


More information about the lldb-commits mailing list