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

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


================
@@ -567,6 +567,9 @@ DebuggerThread::HandleUnloadDllEvent(const UNLOAD_DLL_DEBUG_INFO &info,
 DWORD
 DebuggerThread::HandleODSEvent(const OUTPUT_DEBUG_STRING_INFO &info,
                                DWORD thread_id) {
+  m_debug_delegate->OnDebugString(
+      llvm::bit_cast<lldb::addr_t>(info.lpDebugStringData),
----------------
charles-zablit wrote:

```suggestion
      static_cast<lldb::addr_t>(reinterpret_cast<uintptr_t>(info.lpDebugStringData)),
```

This won't compile on 32 bit (if we are interested in that on Windows still). `LPSTR` is 4 bytes and `lldb::addr_t` is an `uint64_t`.

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


More information about the lldb-commits mailing list