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.
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.
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits