[Lldb-commits] [lldb] [lldb-server] Add accelerator plugin infrastructure for debugging hardware accelerators like gpus (PR #198907)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Wed May 27 03:39:59 PDT 2026


================
@@ -34,6 +34,17 @@ else()
   list(APPEND LLDB_PLUGINS lldbPluginObjectFileELF)
 endif()
 
+option(LLDB_ENABLE_MOCK_ACCELERATOR_PLUGIN
+  "Enable the mock accelerator plugin for testing" OFF)
----------------
DavidSpickett wrote:

Another way to put it is that normally options to enable more tests don't change the binary being tested.

ENABLE_X_TESTS - sounds like it might require some supporting package, but lldb-server wouldn't change
ENABLE_X - sounds like it could change lldb-server, and as a result, some tests might automatically start running (LLDB_ENABLE_PYTHON for example)

I don't want to make you do a lot of work to avoid what's going to be a tiny overhead anyway. Expanding the option description would be ok I think.

(maybe you want a runtime load option later to make distribution easier though)

https://github.com/llvm/llvm-project/pull/198907


More information about the lldb-commits mailing list