[Lldb-commits] [PATCH] D121502: [lldb] Use the debugger's output stream for writing in HandleProgressEvent
Jonas Devlieghere via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri Mar 11 17:34:06 PST 2022
JDevlieghere created this revision.
JDevlieghere added reviewers: labath, jingham.
Herald added a project: All.
JDevlieghere requested review of this revision.
Use the (thread safe) output stream to write progress events to the debugger's output.
https://reviews.llvm.org/D121502
Files:
lldb/source/Core/Debugger.cpp
Index: lldb/source/Core/Debugger.cpp
===================================================================
--- lldb/source/Core/Debugger.cpp
+++ lldb/source/Core/Debugger.cpp
@@ -1779,8 +1779,9 @@
// Determine whether the current output file is an interactive terminal with
// color support. We assume that if we support ANSI escape codes we support
// vt100 escape codes.
- File &output = GetOutputFile();
- if (!output.GetIsInteractive() || !output.GetIsTerminalWithColors())
+ StreamFile &output = GetOutputStream();
+ File &output_file = output.GetFile();
+ if (!output_file.GetIsInteractive() || !output_file.GetIsTerminalWithColors())
return;
// Print over previous line, if any.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D121502.414778.patch
Type: text/x-patch
Size: 708 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20220312/87f48988/attachment.bin>
More information about the lldb-commits
mailing list