[Lldb-commits] [lldb] [lldb] Real-time console pane for output in lldb tui (PR #177160)
Nagesh Nazare via lldb-commits
lldb-commits at lists.llvm.org
Tue Apr 7 09:01:35 PDT 2026
================
@@ -6309,6 +6309,236 @@ HandleCharResult HelpDialogDelegate::WindowDelegateHandleChar(Window &window,
return eKeyHandled;
}
+class ConsoleOutputWindowDelegate : public WindowDelegate {
+private:
+ void PollProcessOutput() {
----------------
nageshnnazare wrote:
Yes, it get triggered from the virtual call `WindowDelegateProcessEvent()`.
If a process event with `eBroadcastBitSTDOUT` or `eBroadcastBitSTDERR` is detected, it calls `m_window_sp->HandleProcessEvent(event_sp)`. `Window::HandleProcessEvent(const lldb::EventSP &event_sp)` method propagates the event to its delegate: `m_delegate_sp->WindowDelegateProcessEvent(event_sp)`. `ConsoleOutputWindowDelegate::PollProcessOutput()` function then fetches the actual output data using `process->GetSTDOUT` and `process->GetSTDERR` and appends it to the console buffer via `AppendOutput()`
https://github.com/llvm/llvm-project/pull/177160
More information about the lldb-commits
mailing list