Skip to content

Commit 2011eec

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 e87aa0c commit 2011eec

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
@@ -208,12 +208,12 @@ llvm::Error DAP::ConfigureIO(std::FILE *overrideOut, std::FILE *overrideErr) {
208208
in = lldb::SBFile(std::fopen(DEV_NULL, "r"), /*transfer_ownership=*/true);
209209

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

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

0 commit comments

Comments
 (0)