projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
097d46f
)
[lldb] Always move the cursor back after printing progress
author
Jonas Devlieghere
<jonas@devlieghere.com>
Wed, 9 Mar 2022 02:35:06 +0000
(18:35 -0800)
committer
Jonas Devlieghere
<jonas@devlieghere.com>
Wed, 9 Mar 2022 02:35:09 +0000
(18:35 -0800)
This got lost while iterating on the patch. We need to always move the
cursor to the front of the line so that if something else
(asynchronously) prints to the debugger's output it overwrites the
progress message.
lldb/source/Core/Debugger.cpp
patch
|
blob
|
history
diff --git
a/lldb/source/Core/Debugger.cpp
b/lldb/source/Core/Debugger.cpp
index
622dd66
..
39e83de
100644
(file)
--- a/
lldb/source/Core/Debugger.cpp
+++ b/
lldb/source/Core/Debugger.cpp
@@
-1813,7
+1813,7
@@
void Debugger::HandleProgressEvent(const lldb::EventSP &event_sp) {
"%s", ansi::FormatAnsiTerminalCodes(ansi_suffix, use_color).c_str());
// Clear until the end of the line.
- output.Printf("\x1B[K");
+ output.Printf("\x1B[K
\r
");
// Flush the output.
output.Flush();