[all-commits] [llvm/llvm-project] d7e5a7: [lldb-dap][windows] drain the ConPTY before attach...
Charles Zablit via All-commits
all-commits at lists.llvm.org
Wed Feb 11 06:17:40 PST 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d7e5a7dacdb7c17e48a89e6e4fb50ccaa2fd5c94
https://github.com/llvm/llvm-project/commit/d7e5a7dacdb7c17e48a89e6e4fb50ccaa2fd5c94
Author: Charles Zablit <c_zablit at apple.com>
Date: 2026-02-11 (Wed, 11 Feb 2026)
Changed paths:
M lldb/include/lldb/Host/windows/PseudoConsole.h
M lldb/source/Host/windows/PseudoConsole.cpp
Log Message:
-----------
[lldb-dap][windows] drain the ConPTY before attaching (#180578)
Add a step to drain the init sequences emitted by the ConPTY before
attaching it to the debuggee.
A ConPTY (PseudoConsole) emits init sequences which flush the screen and
contain the name of the program (ESC[2J for clear screen, ESC[H for
cursor home and more). It's not desirable to filter them out: if a
debuggee also emits them, lldb would filter that output as well. To work
around this, the ConPTY is drained by attaching a dummy process to it,
consuming the init sequences and then attaching the actual debuggee.
---------
Co-authored-by: Nerixyz <nero.9 at hotmail.de>
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list