[all-commits] [llvm/llvm-project] 3d24f9: [lldb-server] Add accelerator plugin infrastructur...

satyanarayana reddy janga via All-commits all-commits at lists.llvm.org
Fri May 29 15:34:20 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3d24f9acc92bc3288efa8e17eee6ae41d694677f
      https://github.com/llvm/llvm-project/commit/3d24f9acc92bc3288efa8e17eee6ae41d694677f
  Author: satyanarayana reddy janga <satyajanga at fb.com>
  Date:   2026-05-29 (Fri, 29 May 2026)

  Changed paths:
    M lldb/docs/resources/lldbgdbremote.md
    M lldb/include/lldb/Host/common/NativeProcessProtocol.h
    A lldb/include/lldb/Utility/AcceleratorGDBRemotePackets.h
    M lldb/include/lldb/Utility/GDBRemote.h
    M lldb/include/lldb/Utility/StringExtractorGDBRemote.h
    M lldb/packages/Python/lldbsuite/test/tools/lldb-server/gdbremote_testcase.py
    M lldb/source/Plugins/Process/gdb-remote/CMakeLists.txt
    M lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp
    M lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.h
    A lldb/source/Plugins/Process/gdb-remote/LLDBServerAcceleratorPlugin.cpp
    A lldb/source/Plugins/Process/gdb-remote/LLDBServerAcceleratorPlugin.h
    A lldb/source/Utility/AcceleratorGDBRemotePackets.cpp
    M lldb/source/Utility/CMakeLists.txt
    M lldb/source/Utility/StringExtractorGDBRemote.cpp
    A lldb/test/API/accelerator/mock/Makefile
    A lldb/test/API/accelerator/mock/TestMockAcceleratorPlugin.py
    A lldb/test/API/accelerator/mock/main.c
    M lldb/test/API/lit.site.cfg.py.in
    M lldb/test/CMakeLists.txt
    M lldb/tools/lldb-server/CMakeLists.txt
    A lldb/tools/lldb-server/Plugins/Accelerator/CMakeLists.txt
    A lldb/tools/lldb-server/Plugins/Accelerator/Mock/CMakeLists.txt
    A lldb/tools/lldb-server/Plugins/Accelerator/Mock/LLDBServerMockAcceleratorPlugin.cpp
    A lldb/tools/lldb-server/Plugins/Accelerator/Mock/LLDBServerMockAcceleratorPlugin.h
    A lldb/tools/lldb-server/Plugins/CMakeLists.txt
    M lldb/tools/lldb-server/lldb-gdbserver.cpp
    M lldb/utils/lldb-dotest/CMakeLists.txt
    M lldb/utils/lldb-dotest/lldb-dotest.in

  Log Message:
  -----------
  [lldb-server] Add accelerator plugin infrastructure for debugging hardware accelerators like gpus (#198907)

This is the first patch of many related to
https://discourse.llvm.org/t/upstreaming-basic-support-for-accelerators/89827/6

### What this patch adds

  - **`LLDBServerAcceleratorPlugin`** base class in
`source/Plugins/Process/gdb-remote/` so accelerator can implement the
own plugin
  - **`accelerator-plugins+`** feature in `qSupported` response, only
    advertised when at least one plugin is installed
- **`jAcceleratorPluginInitialize`** GDB remote packet and its
implementation in handlers, request and response.
- **`AcceleratorActions`** struct so every plugin can return the actions
that needs to be on the initilaize. in the future we will extend this
install breakpoints etc.
  - **Mock accelerator plugin** for testing, gated by CMake option
    `LLDB_ENABLE_MOCK_ACCELERATOR_PLUGIN` (default OFF)
  - **Tests** that connect to a real lldb-server, verify
    `accelerator-plugins+` in `qSupported`, send
    `jAcceleratorPluginInitialize`, and validate the JSON response

  ### Design decisions
  - CMake option defaults to OFF so normal builds are unaffected
  - Tests skip automatically when the plugin is not compiled in



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