[all-commits] [llvm/llvm-project] e12287: Add a progress class that can track long running o...

Greg Clayton via All-commits all-commits at lists.llvm.org
Wed Mar 24 12:58:35 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e122877f10988d791cd7d7cd667ce17febec3a16
      https://github.com/llvm/llvm-project/commit/e122877f10988d791cd7d7cd667ce17febec3a16
  Author: Greg Clayton <gclayton at fb.com>
  Date:   2021-03-24 (Wed, 24 Mar 2021)

  Changed paths:
    M lldb/include/lldb/API/SBBroadcaster.h
    M lldb/include/lldb/API/SBDebugger.h
    M lldb/include/lldb/Core/Debugger.h
    A lldb/include/lldb/Core/Progress.h
    M lldb/packages/Python/lldbsuite/test/tools/lldb-vscode/vscode.py
    M lldb/source/API/SBDebugger.cpp
    M lldb/source/Core/CMakeLists.txt
    M lldb/source/Core/Debugger.cpp
    M lldb/source/Core/Module.cpp
    A lldb/source/Core/Progress.cpp
    M lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
    M lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
    M lldb/source/Plugins/SymbolFile/DWARF/ManualDWARFIndex.cpp
    M lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
    M lldb/test/API/tools/lldb-vscode/launch/TestVSCode_launch.py
    M lldb/tools/lldb-vscode/VSCode.cpp
    M lldb/tools/lldb-vscode/VSCode.h
    M lldb/tools/lldb-vscode/lldb-vscode.cpp

  Log Message:
  -----------
  Add a progress class that can track long running operations in LLDB.

LLDB can often appear deadlocked to users that use IDEs when it is indexing DWARF, or parsing symbol tables. These long running operations can make a debug session appear to be doing nothing even though a lot of work is going on inside LLDB. This patch adds a public API to allow clients to listen to debugger events that report progress and will allow UI to create an activity window or display that can show users what is going on and keep them informed of expensive operations that are going on inside LLDB.

Differential Revision: https://reviews.llvm.org/D97739




More information about the All-commits mailing list