llvm-project/lldb/source
Jonas Devlieghere 5a27b99825
[lldb] Show progress events in the command line driver
This patch adds support for showing progress events when using lldb on
the command line. It spawns a separate thread that listens for progress
events and prints them to the debugger's output stream.

It's nothing fancy (yet), for now it just prints the progress message.
If we know the total number of items being processed, we prefix the
message with something like [1/100], similar to ninja's output.

This patch doesn't use any fancy terminal manipulation: it uses a simple
carriage return (\r) to bring the cursor to the front of the line and
vt100 escape codes to clear the (rest) of the line.

Differential revision: https://reviews.llvm.org/D120972
2022-03-08 18:24:26 -08:00
..
API [lldb] Remove FileSystem::Initialize from FileCollector 2022-03-03 13:22:38 -08:00
Breakpoint Fix up the "lldb log break" channel output. 2022-03-03 12:10:39 -08:00
Commands [lldb] Remove FileSystem::Initialize from FileCollector 2022-03-03 13:22:38 -08:00
Core [lldb] Show progress events in the command line driver 2022-03-08 18:24:26 -08:00
DataFormatters [lldb] Rename Logging.h to LLDBLog.h and clean up includes 2022-02-03 14:47:01 +01:00
Expression Change "target.save-jit-objects" to "target.save-jit-objects-dir". 2022-03-07 17:44:51 -08:00
Host [lldb] Add a setting to change the autosuggestion ANSI escape codes 2022-03-07 08:54:37 -08:00
Initialization [lldb] Remove FileSystem::Initialize from FileCollector 2022-03-03 13:22:38 -08:00
Interpreter [LLDB] Flush stream at the end of PrintCommandOutput 2022-03-04 13:06:15 -08:00
Plugins ObjectFile: add a case for `EM_RISCV` 2022-03-04 21:54:20 +00:00
Symbol [lldb] Show progress events in the command line driver 2022-03-08 18:24:26 -08:00
Target Change "target.save-jit-objects" to "target.save-jit-objects-dir". 2022-03-07 17:44:51 -08:00
Utility [lldb] Remove FileSystem::Initialize from FileCollector 2022-03-03 13:22:38 -08:00
Version [lldb] Fix LLDB_FULL_VERSION_STRING 2022-01-19 14:20:22 -08:00
CMakeLists.txt [lldb] Make lldbVersion a full fledged library 2021-12-08 15:14:34 -08:00