[Lldb-commits] [lldb] [lldb-server] Add dynamic loader support to accelerator plugin protocol (PR #214564)
David Spickett via lldb-commits
lldb-commits at lists.llvm.org
Mon Aug 10 02:42:42 PDT 2026
================
@@ -2862,3 +2862,37 @@ STUB REPLIES: {"disable_bp":true,"auto_resume_native":false,"actions":{"plugin_
**Priority To Implement:** Required for hardware accelerator debugging
support. Not needed for non-hardware-accelerator debugging.
+
+### jAcceleratorPluginGetDynamicLoaderLibraryInfo
+
+Requests shared library information from an accelerator plugin. The client
+sends this packet when it needs to load or update the accelerator's shared
+library list. This packet requires the `accelerator-plugins+` feature from
+`qSupported`.
+
+```
+LLDB SENDS: jAcceleratorPluginGetDynamicLoaderLibraryInfo:<json>
+STUB REPLIES: <json_response>
+```
+
+The request JSON has the following fields:
+
+| Key | Type | Description |
+|---------------|--------|-------------|
+| `plugin_name` | string | Name of the accelerator plugin to query. |
+| `full` | bool | If true, return all libraries. If false, return only updates since the last query. |
+
+The response JSON has the following fields:
+
+| Key | Type | Description |
+|-----------------|-------|-------------|
+| `library_infos` | array | Array of library info objects, each with `pathname`, `load` (bool), and optional `load_address`, `loaded_sections`, `uuid`, `native_memory_address`, `native_memory_size`, `file_offset`, `file_size`. |
----------------
DavidSpickett wrote:
Mention if any of these have a specific meaning when they are missing versus being empty. `loaded_sections` for example.
You know how some things in the protocol are like:
* Missing means we have no idea
* Empty means we looked and found nothing
https://github.com/llvm/llvm-project/pull/214564
More information about the lldb-commits
mailing list