Skip to content

Commit 8838b06

Browse files
committed
[lldb][lldb-dap] Redirect LLDB's messages to the right output category.
Based on the DAP specification. The output categories stdout and stderr should only be used for the debuggee's stdout and stderr. Signed-off-by: Ebuka Ezike <[email protected]>
1 parent 6e3b16b commit 8838b06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lldb/tools/lldb-dap/DAP.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,12 +209,12 @@ llvm::Error DAP::ConfigureIO(std::FILE *overrideOut, std::FILE *overrideErr) {
209209
in = lldb::SBFile(std::fopen(DEV_NULL, "r"), /*transfer_ownership=*/true);
210210

211211
if (auto Error = out.RedirectTo(overrideOut, [this](llvm::StringRef output) {
212-
SendOutput(OutputType::Stdout, output);
212+
SendOutput(OutputType::Console, output);
213213
}))
214214
return Error;
215215

216216
if (auto Error = err.RedirectTo(overrideErr, [this](llvm::StringRef output) {
217-
SendOutput(OutputType::Stderr, output);
217+
SendOutput(OutputType::Console, output);
218218
}))
219219
return Error;
220220

0 commit comments

Comments
 (0)