[all-commits] [llvm/llvm-project] 6b048a: [LLDB] Add SBProgress so Python scripts can also r...

Jacob Lalonde via All-commits all-commits at lists.llvm.org
Fri Jan 17 12:00:54 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6b048aeaf837e0e16fece94610f0871d17cefe4c
      https://github.com/llvm/llvm-project/commit/6b048aeaf837e0e16fece94610f0871d17cefe4c
  Author: Jacob Lalonde <jalalonde at fb.com>
  Date:   2025-01-17 (Fri, 17 Jan 2025)

  Changed paths:
    M lldb/bindings/headers.swig
    A lldb/bindings/interface/SBProgressDocstrings.i
    M lldb/bindings/interfaces.swig
    M lldb/include/lldb/API/SBDebugger.h
    A lldb/include/lldb/API/SBProgress.h
    M lldb/include/lldb/lldb-forward.h
    M lldb/source/API/CMakeLists.txt
    A lldb/source/API/SBProgress.cpp
    M lldb/source/Core/Debugger.cpp
    A lldb/test/API/python_api/sbprogress/TestSBProgress.py

  Log Message:
  -----------
  [LLDB] Add SBProgress so Python scripts can also report progress (#119052)

Recently I've been working on a lot of internal Python tooling, and in
certain cases I want to report async to the script over DAP. Progress.h
already handles this, so I've exposed Progress via the SB API so Python
scripts can also update progress objects.

I actually have no idea how to test this, so I just wrote a [toy command
to test
it](https://gist.github.com/Jlalond/48d85e75a91f7a137e3142e6a13d0947)


![image](https://github.com/user-attachments/assets/7317cbb8-9145-4fdb-bacf-9864bf50c467)

I also copied the first section of the extensive Progress.h class
documentation to the docstrings.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list