[Lldb-commits] [lldb] [llvm] [lldb][windows] add Windows Virtual Console support (PR #168729)
Saleem Abdulrasool via lldb-commits
lldb-commits at lists.llvm.org
Tue Dec 16 12:48:09 PST 2025
================
@@ -31,7 +33,12 @@ using namespace lldb_private;
ProcessLaunchInfo::ProcessLaunchInfo()
: ProcessInfo(), m_working_dir(), m_plugin_name(), m_flags(0),
- m_file_actions(), m_pty(new PseudoTerminal), m_monitor_callback(nullptr) {
+ m_file_actions(), m_monitor_callback(nullptr) {
+#ifdef _WIN32
+ m_pty = std::make_shared<PseudoConsole>();
+#else
+ m_pty = std::make_shared<PseudoTerminal>();
+#endif
----------------
compnerd wrote:
This would also be uniform and can be hoisted into the initialiser list:
```c++
m_pty(std::make_shared<PTY>())
```
https://github.com/llvm/llvm-project/pull/168729
More information about the lldb-commits
mailing list