[Lldb-commits] [lldb] [lldb-dap] Support inspecting memory (PR #104317)

Miro Bucko via lldb-commits lldb-commits at lists.llvm.org
Mon Aug 19 14:41:49 PDT 2024


================
@@ -4028,6 +4046,161 @@ void request_disassemble(const llvm::json::Object &request) {
   response.try_emplace("body", std::move(body));
   g_dap.SendJSON(llvm::json::Value(std::move(response)));
 }
+
+// "ReadMemoryRequest": {
+//   "allOf": [ { "$ref": "#/definitions/Request" }, {
+//     "type": "object",
+//     "description": "Reads bytes from memory at the provided location. Clients
+//                     should only call this request if the corresponding
+//                     capability `supportsReadMemoryRequest` is true.",
+//     "properties": {
+//       "command": {
+//         "type": "string",
+//         "enum": [ "readMemory" ]
+//       },
+//       "arguments": {
+//         "$ref": "#/definitions/ReadMemoryArguments"
+//       }
+//     },
+//     "required": [ "command", "arguments" ]
+//   }]
+// },
+// "ReadMemoryArguments": {
+//   "type": "object",
+//   "description": "Arguments for `readMemory` request.",
+//   "properties": {
+//     "memoryReference": {
----------------
mbucko wrote:

If you look at the `memory read` command it takes start and end `address-expression`. If you limit this API to memoryReference it might be hard to extend in the future.

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


More information about the lldb-commits mailing list