[Lldb-commits] [lldb] [lldb] Synchronize Debugger's stdout and stderr at the StreamFile level (PR #126630)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Tue Feb 11 09:50:38 PST 2025


JDevlieghere wrote:

> it doesn't e.g. prevent someone from printing something in the middle of a statusline update.

Technically it does, because the statusline is printed as a single call to write, but I agree that's fragile and one could argue that works by accident rather than by design. I really like the idea of introducing an RAII object as it (1) makes the locking more explicit and (2) makes it easy to do the right thing and hard to do the wrong thing. 

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


More information about the lldb-commits mailing list