[Lldb-commits] [PATCH] D123025: [lldb-vscode] Implement stderr/stdout on win32 and redirect lldb log to VSCode
Michael Hept via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Mon Apr 4 05:37:06 PDT 2022
nidefawl created this revision.
nidefawl added a reviewer: wallace.
nidefawl added a project: LLDB.
Herald added a subscriber: JDevlieghere.
Herald added a project: All.
nidefawl requested review of this revision.
Herald added a subscriber: lldb-commits.
This patch implements stderr/stdout forwarding on windows.
This was previously not implemented in D99974 <https://reviews.llvm.org/D99974>.
I added separate callbacks so the output can be sent to the different channels VSCode provides (OutputType::Stdout, OutputType::Stderr, OutputType::Console).
This patch also passes a handler a log callback to SBDebugger::Create to be able to see logging output when it is enabled.
Since the output is now redirect on early startup I removed the calls to SetOutputFileHandle/SetErrorFileHandle, which set them to /dev/null.
I send the output of stderr/stdout/lldb log to OutputType::Console
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D123025
Files:
lldb/tools/lldb-vscode/OutputRedirector.cpp
lldb/tools/lldb-vscode/lldb-vscode.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D123025.420146.patch
Type: text/x-patch
Size: 4366 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20220404/7fb7e974/attachment-0001.bin>
More information about the lldb-commits
mailing list