| { | |
| "$schema": "https://json-schema.org/draft/2020-12/schema", | |
| "title": "zxdb-cli Protocol Schema", | |
| "description": "JSON schema for requests and responses in the zxdb-cli UDS protocol", | |
| "version": 22, | |
| "requests": { | |
| "$defs": { | |
| "AspaceRequest": { | |
| "description": "Request the virtual address space map for a target process.", | |
| "properties": { | |
| "command": { | |
| "const": "aspace", | |
| "default": "aspace", | |
| "title": "Command", | |
| "type": "string" | |
| }, | |
| "last_seen_seq": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Last Seen Seq" | |
| }, | |
| "ack_seq": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Ack Seq" | |
| }, | |
| "pid": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Pid" | |
| }, | |
| "address": { | |
| "anyOf": [ | |
| { | |
| "type": "string" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Address" | |
| }, | |
| "filter": { | |
| "anyOf": [ | |
| { | |
| "type": "string" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Filter" | |
| } | |
| }, | |
| "title": "AspaceRequest", | |
| "type": "object" | |
| }, | |
| "AsyncBacktraceRequest": { | |
| "description": "Request asynchronous backtrace (async task tree) for a process.", | |
| "properties": { | |
| "command": { | |
| "const": "async-backtrace", | |
| "default": "async-backtrace", | |
| "title": "Command", | |
| "type": "string" | |
| }, | |
| "last_seen_seq": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Last Seen Seq" | |
| }, | |
| "ack_seq": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Ack Seq" | |
| }, | |
| "pid": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Pid" | |
| } | |
| }, | |
| "title": "AsyncBacktraceRequest", | |
| "type": "object" | |
| }, | |
| "AttachRequest": { | |
| "description": "Request to attach to a process or driver_host.", | |
| "properties": { | |
| "command": { | |
| "const": "attach", | |
| "default": "attach", | |
| "title": "Command", | |
| "type": "string" | |
| }, | |
| "last_seen_seq": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Last Seen Seq" | |
| }, | |
| "ack_seq": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Ack Seq" | |
| }, | |
| "filter": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "string" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Filter" | |
| }, | |
| "driver": { | |
| "anyOf": [ | |
| { | |
| "type": "string" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Driver" | |
| }, | |
| "node": { | |
| "anyOf": [ | |
| { | |
| "type": "string" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Node" | |
| }, | |
| "weak": { | |
| "default": false, | |
| "title": "Weak", | |
| "type": "boolean" | |
| }, | |
| "exact": { | |
| "default": false, | |
| "title": "Exact", | |
| "type": "boolean" | |
| }, | |
| "recursive": { | |
| "default": false, | |
| "title": "Recursive", | |
| "type": "boolean" | |
| }, | |
| "job_only": { | |
| "default": false, | |
| "title": "Job Only", | |
| "type": "boolean" | |
| }, | |
| "wait": { | |
| "default": false, | |
| "title": "Wait", | |
| "type": "boolean" | |
| } | |
| }, | |
| "title": "AttachRequest", | |
| "type": "object" | |
| }, | |
| "BreakRequest": { | |
| "description": "Request to set or delete a source or function breakpoint.\n\nExactly one target mode must be specified:\n1. Source breakpoint: both `file` and `line` are set.\n2. Function breakpoint: `function` is set.", | |
| "properties": { | |
| "command": { | |
| "const": "break", | |
| "default": "break", | |
| "title": "Command", | |
| "type": "string" | |
| }, | |
| "last_seen_seq": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Last Seen Seq" | |
| }, | |
| "ack_seq": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Ack Seq" | |
| }, | |
| "file": { | |
| "anyOf": [ | |
| { | |
| "type": "string" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "File" | |
| }, | |
| "line": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Line" | |
| }, | |
| "function": { | |
| "anyOf": [ | |
| { | |
| "type": "string" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Function" | |
| }, | |
| "condition": { | |
| "anyOf": [ | |
| { | |
| "type": "string" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Condition" | |
| }, | |
| "delete": { | |
| "default": false, | |
| "title": "Delete", | |
| "type": "boolean" | |
| } | |
| }, | |
| "title": "BreakRequest", | |
| "type": "object" | |
| }, | |
| "ConsoleRequest": { | |
| "description": "Request execution of a raw zxdb console command.", | |
| "properties": { | |
| "command": { | |
| "const": "console", | |
| "default": "console", | |
| "title": "Command", | |
| "type": "string" | |
| }, | |
| "last_seen_seq": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Last Seen Seq" | |
| }, | |
| "ack_seq": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Ack Seq" | |
| }, | |
| "input": { | |
| "title": "Input", | |
| "type": "string" | |
| }, | |
| "thread_id": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Thread Id" | |
| }, | |
| "frame_index": { | |
| "default": 0, | |
| "title": "Frame Index", | |
| "type": "integer" | |
| } | |
| }, | |
| "required": [ | |
| "input" | |
| ], | |
| "title": "ConsoleRequest", | |
| "type": "object" | |
| }, | |
| "ContinueRequest": { | |
| "description": "Request to resume execution of a thread.", | |
| "properties": { | |
| "command": { | |
| "const": "continue", | |
| "default": "continue", | |
| "title": "Command", | |
| "type": "string" | |
| }, | |
| "last_seen_seq": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Last Seen Seq" | |
| }, | |
| "ack_seq": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Ack Seq" | |
| }, | |
| "thread_id": { | |
| "title": "Thread Id", | |
| "type": "integer" | |
| }, | |
| "single_thread": { | |
| "anyOf": [ | |
| { | |
| "type": "boolean" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Single Thread" | |
| } | |
| }, | |
| "required": [ | |
| "thread_id" | |
| ], | |
| "title": "ContinueRequest", | |
| "type": "object" | |
| }, | |
| "DetachRequest": { | |
| "description": "Request to detach from a process.", | |
| "properties": { | |
| "command": { | |
| "const": "detach", | |
| "default": "detach", | |
| "title": "Command", | |
| "type": "string" | |
| }, | |
| "last_seen_seq": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Last Seen Seq" | |
| }, | |
| "ack_seq": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Ack Seq" | |
| }, | |
| "pid": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Pid" | |
| }, | |
| "all": { | |
| "default": false, | |
| "title": "All", | |
| "type": "boolean" | |
| } | |
| }, | |
| "title": "DetachRequest", | |
| "type": "object" | |
| }, | |
| "DiagnoseHangRequest": { | |
| "description": "Capture a hang/concurrency diagnostic snapshot of a process.", | |
| "properties": { | |
| "command": { | |
| "const": "diagnose-hang", | |
| "default": "diagnose-hang", | |
| "title": "Command", | |
| "type": "string" | |
| }, | |
| "last_seen_seq": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Last Seen Seq" | |
| }, | |
| "ack_seq": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Ack Seq" | |
| }, | |
| "pid": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "description": "Target process KOID (defaults to attached process).", | |
| "title": "Pid" | |
| }, | |
| "auto_resume": { | |
| "default": true, | |
| "description": "Automatically resume threads paused during snapshot (guaranteed via finally).", | |
| "title": "Auto Resume", | |
| "type": "boolean" | |
| } | |
| }, | |
| "title": "DiagnoseHangRequest", | |
| "type": "object" | |
| }, | |
| "DriverListRequest": { | |
| "description": "Request to list running driver_hosts, drivers, and device nodes.", | |
| "properties": { | |
| "command": { | |
| "const": "driver-list", | |
| "default": "driver-list", | |
| "title": "Command", | |
| "type": "string" | |
| }, | |
| "last_seen_seq": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Last Seen Seq" | |
| }, | |
| "ack_seq": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Ack Seq" | |
| }, | |
| "filter": { | |
| "anyOf": [ | |
| { | |
| "type": "string" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Filter" | |
| } | |
| }, | |
| "title": "DriverListRequest", | |
| "type": "object" | |
| }, | |
| "EvaluateRequest": { | |
| "description": "Request evaluation of an expression in a given stack frame.", | |
| "properties": { | |
| "command": { | |
| "const": "evaluate", | |
| "default": "evaluate", | |
| "title": "Command", | |
| "type": "string" | |
| }, | |
| "last_seen_seq": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Last Seen Seq" | |
| }, | |
| "ack_seq": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Ack Seq" | |
| }, | |
| "thread_id": { | |
| "title": "Thread Id", | |
| "type": "integer" | |
| }, | |
| "frame_index": { | |
| "default": 0, | |
| "title": "Frame Index", | |
| "type": "integer" | |
| }, | |
| "expression": { | |
| "title": "Expression", | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "thread_id", | |
| "expression" | |
| ], | |
| "title": "EvaluateRequest", | |
| "type": "object" | |
| }, | |
| "FinishRequest": { | |
| "description": "Request to finish execution of current frame (step out).", | |
| "properties": { | |
| "command": { | |
| "const": "finish", | |
| "default": "finish", | |
| "title": "Command", | |
| "type": "string" | |
| }, | |
| "last_seen_seq": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Last Seen Seq" | |
| }, | |
| "ack_seq": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Ack Seq" | |
| }, | |
| "thread_id": { | |
| "title": "Thread Id", | |
| "type": "integer" | |
| }, | |
| "single_thread": { | |
| "anyOf": [ | |
| { | |
| "type": "boolean" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Single Thread" | |
| } | |
| }, | |
| "required": [ | |
| "thread_id" | |
| ], | |
| "title": "FinishRequest", | |
| "type": "object" | |
| }, | |
| "GetStateRequest": { | |
| "description": "Request current state of threads.", | |
| "properties": { | |
| "command": { | |
| "const": "get-state", | |
| "default": "get-state", | |
| "title": "Command", | |
| "type": "string" | |
| }, | |
| "last_seen_seq": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Last Seen Seq" | |
| }, | |
| "ack_seq": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Ack Seq" | |
| } | |
| }, | |
| "title": "GetStateRequest", | |
| "type": "object" | |
| }, | |
| "HandlesRequest": { | |
| "description": "Request the Zircon handle table for a target process.", | |
| "properties": { | |
| "command": { | |
| "const": "handles", | |
| "default": "handles", | |
| "title": "Command", | |
| "type": "string" | |
| }, | |
| "last_seen_seq": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Last Seen Seq" | |
| }, | |
| "ack_seq": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Ack Seq" | |
| }, | |
| "pid": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Pid" | |
| }, | |
| "type": { | |
| "anyOf": [ | |
| { | |
| "type": "string" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Type" | |
| }, | |
| "koid": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Koid" | |
| }, | |
| "hex": { | |
| "default": true, | |
| "title": "Hex", | |
| "type": "boolean" | |
| }, | |
| "detail": { | |
| "default": false, | |
| "title": "Detail", | |
| "type": "boolean" | |
| } | |
| }, | |
| "title": "HandlesRequest", | |
| "type": "object" | |
| }, | |
| "HelloRequest": { | |
| "description": "Initial handshake request to verify protocol version.", | |
| "properties": { | |
| "command": { | |
| "const": "hello", | |
| "default": "hello", | |
| "title": "Command", | |
| "type": "string" | |
| }, | |
| "last_seen_seq": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Last Seen Seq" | |
| }, | |
| "ack_seq": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Ack Seq" | |
| }, | |
| "version": { | |
| "title": "Version", | |
| "type": "integer" | |
| } | |
| }, | |
| "required": [ | |
| "version" | |
| ], | |
| "title": "HelloRequest", | |
| "type": "object" | |
| }, | |
| "MemReadRequest": { | |
| "description": "Read memory from a target process or stack frame.", | |
| "properties": { | |
| "command": { | |
| "const": "mem-read", | |
| "default": "mem-read", | |
| "title": "Command", | |
| "type": "string" | |
| }, | |
| "last_seen_seq": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Last Seen Seq" | |
| }, | |
| "ack_seq": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Ack Seq" | |
| }, | |
| "address": { | |
| "title": "Address", | |
| "type": "string" | |
| }, | |
| "size": { | |
| "default": 64, | |
| "title": "Size", | |
| "type": "integer" | |
| }, | |
| "pid": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Pid" | |
| }, | |
| "thread_id": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Thread Id" | |
| }, | |
| "frame_index": { | |
| "default": 0, | |
| "title": "Frame Index", | |
| "type": "integer" | |
| } | |
| }, | |
| "required": [ | |
| "address" | |
| ], | |
| "title": "MemReadRequest", | |
| "type": "object" | |
| }, | |
| "ModulesRequest": { | |
| "description": "Request loaded modules and symbol status for a target process.", | |
| "properties": { | |
| "command": { | |
| "const": "modules", | |
| "default": "modules", | |
| "title": "Command", | |
| "type": "string" | |
| }, | |
| "last_seen_seq": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Last Seen Seq" | |
| }, | |
| "ack_seq": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Ack Seq" | |
| }, | |
| "pid": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Pid" | |
| }, | |
| "filter": { | |
| "anyOf": [ | |
| { | |
| "type": "string" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Filter" | |
| }, | |
| "force_reload": { | |
| "default": false, | |
| "title": "Force Reload", | |
| "type": "boolean" | |
| } | |
| }, | |
| "title": "ModulesRequest", | |
| "type": "object" | |
| }, | |
| "NextRequest": { | |
| "description": "Request to step over to the next line of code.", | |
| "properties": { | |
| "command": { | |
| "const": "next", | |
| "default": "next", | |
| "title": "Command", | |
| "type": "string" | |
| }, | |
| "last_seen_seq": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Last Seen Seq" | |
| }, | |
| "ack_seq": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Ack Seq" | |
| }, | |
| "thread_id": { | |
| "title": "Thread Id", | |
| "type": "integer" | |
| }, | |
| "single_thread": { | |
| "anyOf": [ | |
| { | |
| "type": "boolean" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Single Thread" | |
| }, | |
| "granularity": { | |
| "anyOf": [ | |
| { | |
| "enum": [ | |
| "statement", | |
| "line", | |
| "instruction" | |
| ], | |
| "type": "string" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Granularity" | |
| } | |
| }, | |
| "required": [ | |
| "thread_id" | |
| ], | |
| "title": "NextRequest", | |
| "type": "object" | |
| }, | |
| "PauseRequest": { | |
| "description": "Request to pause execution of a thread or process.", | |
| "properties": { | |
| "command": { | |
| "const": "pause", | |
| "default": "pause", | |
| "title": "Command", | |
| "type": "string" | |
| }, | |
| "last_seen_seq": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Last Seen Seq" | |
| }, | |
| "ack_seq": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Ack Seq" | |
| }, | |
| "thread_id": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Thread Id" | |
| }, | |
| "pid": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Pid" | |
| } | |
| }, | |
| "title": "PauseRequest", | |
| "type": "object" | |
| }, | |
| "StackTraceRequest": { | |
| "description": "Request stack trace for a thread or all threads in a process.", | |
| "properties": { | |
| "command": { | |
| "const": "stack-trace", | |
| "default": "stack-trace", | |
| "title": "Command", | |
| "type": "string" | |
| }, | |
| "last_seen_seq": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Last Seen Seq" | |
| }, | |
| "ack_seq": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Ack Seq" | |
| }, | |
| "thread_id": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Thread Id" | |
| }, | |
| "pid": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Pid" | |
| }, | |
| "raw": { | |
| "default": false, | |
| "title": "Raw", | |
| "type": "boolean" | |
| }, | |
| "force_remote_unwind": { | |
| "default": false, | |
| "title": "Force Remote Unwind", | |
| "type": "boolean" | |
| }, | |
| "unwinder": { | |
| "anyOf": [ | |
| { | |
| "enum": [ | |
| "cfi", | |
| "fp", | |
| "scs", | |
| "plt", | |
| "armehabi", | |
| "sigreturn" | |
| ], | |
| "type": "string" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Unwinder" | |
| } | |
| }, | |
| "title": "StackTraceRequest", | |
| "type": "object" | |
| }, | |
| "StartRequest": { | |
| "description": "Request to start the debugging session.", | |
| "properties": { | |
| "command": { | |
| "const": "start", | |
| "default": "start", | |
| "title": "Command", | |
| "type": "string" | |
| }, | |
| "last_seen_seq": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Last Seen Seq" | |
| }, | |
| "ack_seq": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Ack Seq" | |
| }, | |
| "port": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Port" | |
| }, | |
| "connect": { | |
| "default": false, | |
| "title": "Connect", | |
| "type": "boolean" | |
| } | |
| }, | |
| "title": "StartRequest", | |
| "type": "object" | |
| }, | |
| "StepInRequest": { | |
| "description": "Request to step into a function call.", | |
| "properties": { | |
| "command": { | |
| "const": "step-in", | |
| "default": "step-in", | |
| "title": "Command", | |
| "type": "string" | |
| }, | |
| "last_seen_seq": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Last Seen Seq" | |
| }, | |
| "ack_seq": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Ack Seq" | |
| }, | |
| "thread_id": { | |
| "title": "Thread Id", | |
| "type": "integer" | |
| }, | |
| "single_thread": { | |
| "anyOf": [ | |
| { | |
| "type": "boolean" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Single Thread" | |
| }, | |
| "target_id": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Target Id" | |
| }, | |
| "granularity": { | |
| "anyOf": [ | |
| { | |
| "enum": [ | |
| "statement", | |
| "line", | |
| "instruction" | |
| ], | |
| "type": "string" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Granularity" | |
| } | |
| }, | |
| "required": [ | |
| "thread_id" | |
| ], | |
| "title": "StepInRequest", | |
| "type": "object" | |
| }, | |
| "StopRequest": { | |
| "description": "Request to stop the daemon and session.", | |
| "properties": { | |
| "command": { | |
| "const": "stop", | |
| "default": "stop", | |
| "title": "Command", | |
| "type": "string" | |
| }, | |
| "last_seen_seq": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Last Seen Seq" | |
| }, | |
| "ack_seq": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Ack Seq" | |
| } | |
| }, | |
| "title": "StopRequest", | |
| "type": "object" | |
| }, | |
| "ThreadsRequest": { | |
| "description": "Request list of threads.", | |
| "properties": { | |
| "command": { | |
| "const": "threads", | |
| "default": "threads", | |
| "title": "Command", | |
| "type": "string" | |
| }, | |
| "last_seen_seq": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Last Seen Seq" | |
| }, | |
| "ack_seq": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Ack Seq" | |
| } | |
| }, | |
| "title": "ThreadsRequest", | |
| "type": "object" | |
| }, | |
| "TracepointRequest": { | |
| "description": "Request to set, update, enable, disable, delete, clear, or list tracepoints.\n\nWhen hit, the backend captures requested state and emits a structured\ntracepoint event into the event stream without stopping the target thread.", | |
| "properties": { | |
| "command": { | |
| "const": "tracepoint", | |
| "default": "tracepoint", | |
| "title": "Command", | |
| "type": "string" | |
| }, | |
| "last_seen_seq": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Last Seen Seq" | |
| }, | |
| "ack_seq": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Ack Seq" | |
| }, | |
| "id": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Id" | |
| }, | |
| "file": { | |
| "anyOf": [ | |
| { | |
| "type": "string" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "File" | |
| }, | |
| "line": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Line" | |
| }, | |
| "function": { | |
| "anyOf": [ | |
| { | |
| "type": "string" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Function" | |
| }, | |
| "watch": { | |
| "anyOf": [ | |
| { | |
| "type": "string" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Watch" | |
| }, | |
| "size": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Size" | |
| }, | |
| "access_type": { | |
| "default": "write", | |
| "enum": [ | |
| "write", | |
| "readWrite" | |
| ], | |
| "title": "Access Type", | |
| "type": "string" | |
| }, | |
| "thread_id": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Thread Id" | |
| }, | |
| "frame_index": { | |
| "default": 0, | |
| "title": "Frame Index", | |
| "type": "integer" | |
| }, | |
| "condition": { | |
| "anyOf": [ | |
| { | |
| "type": "string" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Condition" | |
| }, | |
| "expressions": { | |
| "items": { | |
| "type": "string" | |
| }, | |
| "title": "Expressions", | |
| "type": "array" | |
| }, | |
| "capture": { | |
| "items": { | |
| "enum": [ | |
| "frame", | |
| "backtrace", | |
| "locals", | |
| "registers" | |
| ], | |
| "type": "string" | |
| }, | |
| "title": "Capture", | |
| "type": "array" | |
| }, | |
| "raw_backtrace": { | |
| "default": false, | |
| "title": "Raw Backtrace", | |
| "type": "boolean" | |
| }, | |
| "max_matching_frames": { | |
| "default": 10, | |
| "title": "Max Matching Frames", | |
| "type": "integer" | |
| }, | |
| "max_hits": { | |
| "default": 20, | |
| "title": "Max Hits", | |
| "type": "integer" | |
| }, | |
| "delete": { | |
| "default": false, | |
| "title": "Delete", | |
| "type": "boolean" | |
| }, | |
| "clear": { | |
| "default": false, | |
| "title": "Clear", | |
| "type": "boolean" | |
| }, | |
| "enabled": { | |
| "anyOf": [ | |
| { | |
| "type": "boolean" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Enabled" | |
| }, | |
| "tracepoint_id": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Tracepoint Id" | |
| }, | |
| "list_all": { | |
| "default": false, | |
| "title": "List All", | |
| "type": "boolean" | |
| } | |
| }, | |
| "title": "TracepointRequest", | |
| "type": "object" | |
| }, | |
| "VariablesRequest": { | |
| "description": "Request variables for a frame in a thread.", | |
| "properties": { | |
| "command": { | |
| "const": "variables", | |
| "default": "variables", | |
| "title": "Command", | |
| "type": "string" | |
| }, | |
| "last_seen_seq": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Last Seen Seq" | |
| }, | |
| "ack_seq": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Ack Seq" | |
| }, | |
| "thread_id": { | |
| "title": "Thread Id", | |
| "type": "integer" | |
| }, | |
| "frame_index": { | |
| "default": 0, | |
| "title": "Frame Index", | |
| "type": "integer" | |
| } | |
| }, | |
| "required": [ | |
| "thread_id" | |
| ], | |
| "title": "VariablesRequest", | |
| "type": "object" | |
| }, | |
| "WaitForEventRequest": { | |
| "description": "Request to wait for a debug adapter event.", | |
| "properties": { | |
| "command": { | |
| "const": "wait-for-event", | |
| "default": "wait-for-event", | |
| "title": "Command", | |
| "type": "string" | |
| }, | |
| "last_seen_seq": { | |
| "title": "Last Seen Seq", | |
| "type": "integer" | |
| }, | |
| "ack_seq": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Ack Seq" | |
| }, | |
| "timeout": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Timeout" | |
| } | |
| }, | |
| "required": [ | |
| "last_seen_seq" | |
| ], | |
| "title": "WaitForEventRequest", | |
| "type": "object" | |
| }, | |
| "WatchRequest": { | |
| "description": "Request to set or delete a data breakpoint (watchpoint) on a variable,\nexpression, or memory address.\n\n`name` is the variable or expression to watch when setting a watchpoint,\nor the `data_id` of the watchpoint to remove when `delete=True`. Active\nwatchpoints, including both their `data_id` and `expression`, are listed\nin `get-state`.\n\nWhen setting a watchpoint, `thread_id` and `access_type` are required\n(`frame_index` is optional, defaulting to 0) to identify the target process\nand stack frame for evaluation. If the thread is running, the daemon\nautomatically pauses it first.\n\nTo watch a memory address, pass a dereferenced pointer expression\n(e.g., `*(uint32_t*)0x1234`).\nTo clear all active watchpoints, set `clear=True`.", | |
| "properties": { | |
| "command": { | |
| "const": "watch", | |
| "default": "watch", | |
| "title": "Command", | |
| "type": "string" | |
| }, | |
| "last_seen_seq": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Last Seen Seq" | |
| }, | |
| "ack_seq": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Ack Seq" | |
| }, | |
| "name": { | |
| "default": "", | |
| "title": "Name", | |
| "type": "string" | |
| }, | |
| "thread_id": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Thread Id" | |
| }, | |
| "frame_index": { | |
| "default": 0, | |
| "title": "Frame Index", | |
| "type": "integer" | |
| }, | |
| "access_type": { | |
| "anyOf": [ | |
| { | |
| "enum": [ | |
| "write", | |
| "readWrite" | |
| ], | |
| "type": "string" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Access Type" | |
| }, | |
| "condition": { | |
| "anyOf": [ | |
| { | |
| "type": "string" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Condition" | |
| }, | |
| "hit_condition": { | |
| "anyOf": [ | |
| { | |
| "type": "string" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Hit Condition" | |
| }, | |
| "delete": { | |
| "default": false, | |
| "title": "Delete", | |
| "type": "boolean" | |
| }, | |
| "clear": { | |
| "default": false, | |
| "title": "Clear", | |
| "type": "boolean" | |
| } | |
| }, | |
| "title": "WatchRequest", | |
| "type": "object" | |
| } | |
| }, | |
| "discriminator": { | |
| "mapping": { | |
| "aspace": "#/$defs/AspaceRequest", | |
| "async-backtrace": "#/$defs/AsyncBacktraceRequest", | |
| "attach": "#/$defs/AttachRequest", | |
| "break": "#/$defs/BreakRequest", | |
| "console": "#/$defs/ConsoleRequest", | |
| "continue": "#/$defs/ContinueRequest", | |
| "detach": "#/$defs/DetachRequest", | |
| "diagnose-hang": "#/$defs/DiagnoseHangRequest", | |
| "driver-list": "#/$defs/DriverListRequest", | |
| "evaluate": "#/$defs/EvaluateRequest", | |
| "finish": "#/$defs/FinishRequest", | |
| "get-state": "#/$defs/GetStateRequest", | |
| "handles": "#/$defs/HandlesRequest", | |
| "hello": "#/$defs/HelloRequest", | |
| "mem-read": "#/$defs/MemReadRequest", | |
| "modules": "#/$defs/ModulesRequest", | |
| "next": "#/$defs/NextRequest", | |
| "pause": "#/$defs/PauseRequest", | |
| "stack-trace": "#/$defs/StackTraceRequest", | |
| "start": "#/$defs/StartRequest", | |
| "step-in": "#/$defs/StepInRequest", | |
| "stop": "#/$defs/StopRequest", | |
| "threads": "#/$defs/ThreadsRequest", | |
| "tracepoint": "#/$defs/TracepointRequest", | |
| "variables": "#/$defs/VariablesRequest", | |
| "wait-for-event": "#/$defs/WaitForEventRequest", | |
| "watch": "#/$defs/WatchRequest" | |
| }, | |
| "propertyName": "command" | |
| }, | |
| "oneOf": [ | |
| { | |
| "$ref": "#/$defs/AspaceRequest" | |
| }, | |
| { | |
| "$ref": "#/$defs/AsyncBacktraceRequest" | |
| }, | |
| { | |
| "$ref": "#/$defs/AttachRequest" | |
| }, | |
| { | |
| "$ref": "#/$defs/BreakRequest" | |
| }, | |
| { | |
| "$ref": "#/$defs/ConsoleRequest" | |
| }, | |
| { | |
| "$ref": "#/$defs/ContinueRequest" | |
| }, | |
| { | |
| "$ref": "#/$defs/DetachRequest" | |
| }, | |
| { | |
| "$ref": "#/$defs/DiagnoseHangRequest" | |
| }, | |
| { | |
| "$ref": "#/$defs/DriverListRequest" | |
| }, | |
| { | |
| "$ref": "#/$defs/EvaluateRequest" | |
| }, | |
| { | |
| "$ref": "#/$defs/FinishRequest" | |
| }, | |
| { | |
| "$ref": "#/$defs/GetStateRequest" | |
| }, | |
| { | |
| "$ref": "#/$defs/HandlesRequest" | |
| }, | |
| { | |
| "$ref": "#/$defs/HelloRequest" | |
| }, | |
| { | |
| "$ref": "#/$defs/MemReadRequest" | |
| }, | |
| { | |
| "$ref": "#/$defs/ModulesRequest" | |
| }, | |
| { | |
| "$ref": "#/$defs/NextRequest" | |
| }, | |
| { | |
| "$ref": "#/$defs/PauseRequest" | |
| }, | |
| { | |
| "$ref": "#/$defs/StackTraceRequest" | |
| }, | |
| { | |
| "$ref": "#/$defs/StartRequest" | |
| }, | |
| { | |
| "$ref": "#/$defs/StepInRequest" | |
| }, | |
| { | |
| "$ref": "#/$defs/StopRequest" | |
| }, | |
| { | |
| "$ref": "#/$defs/ThreadsRequest" | |
| }, | |
| { | |
| "$ref": "#/$defs/TracepointRequest" | |
| }, | |
| { | |
| "$ref": "#/$defs/VariablesRequest" | |
| }, | |
| { | |
| "$ref": "#/$defs/WaitForEventRequest" | |
| }, | |
| { | |
| "$ref": "#/$defs/WatchRequest" | |
| } | |
| ] | |
| }, | |
| "responses": { | |
| "$defs": { | |
| "AddressRegionEntry": { | |
| "additionalProperties": false, | |
| "description": "Information about a mapped VMAR or VMO region in the target process.", | |
| "properties": { | |
| "start": { | |
| "title": "Start", | |
| "type": "string" | |
| }, | |
| "end": { | |
| "title": "End", | |
| "type": "string" | |
| }, | |
| "prot": { | |
| "title": "Prot", | |
| "type": "string" | |
| }, | |
| "size": { | |
| "title": "Size", | |
| "type": "string" | |
| }, | |
| "vmo_koid": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Vmo Koid" | |
| }, | |
| "vmo_offset": { | |
| "anyOf": [ | |
| { | |
| "type": "string" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Vmo Offset" | |
| }, | |
| "committed_pages": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Committed Pages" | |
| }, | |
| "name": { | |
| "title": "Name", | |
| "type": "string" | |
| }, | |
| "depth": { | |
| "default": 0, | |
| "title": "Depth", | |
| "type": "integer" | |
| } | |
| }, | |
| "required": [ | |
| "start", | |
| "end", | |
| "prot", | |
| "size", | |
| "name" | |
| ], | |
| "title": "AddressRegionEntry", | |
| "type": "object" | |
| }, | |
| "AspaceResponse": { | |
| "additionalProperties": false, | |
| "description": "Structured response for the aspace command.", | |
| "properties": { | |
| "pid": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Pid" | |
| }, | |
| "regions": { | |
| "items": { | |
| "$ref": "#/$defs/AddressRegionEntry" | |
| }, | |
| "title": "Regions", | |
| "type": "array" | |
| }, | |
| "page_size": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Page Size" | |
| }, | |
| "total_mapped_bytes": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Total Mapped Bytes" | |
| }, | |
| "total_committed_pages": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Total Committed Pages" | |
| }, | |
| "total_committed_bytes": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Total Committed Bytes" | |
| } | |
| }, | |
| "title": "AspaceResponse", | |
| "type": "object" | |
| }, | |
| "AsyncBacktraceResponse": { | |
| "description": "Response containing async tasks for a process.", | |
| "properties": { | |
| "process_id": { | |
| "title": "Process Id", | |
| "type": "integer" | |
| }, | |
| "tasks": { | |
| "items": { | |
| "$ref": "#/$defs/AsyncTaskNode" | |
| }, | |
| "title": "Tasks", | |
| "type": "array" | |
| } | |
| }, | |
| "required": [ | |
| "process_id" | |
| ], | |
| "title": "AsyncBacktraceResponse", | |
| "type": "object" | |
| }, | |
| "AsyncTaskNode": { | |
| "description": "Represents a node in the async task tree.", | |
| "properties": { | |
| "id": { | |
| "anyOf": [ | |
| { | |
| "type": "string" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Id" | |
| }, | |
| "name": { | |
| "anyOf": [ | |
| { | |
| "type": "string" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Name" | |
| }, | |
| "file": { | |
| "anyOf": [ | |
| { | |
| "type": "string" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "File" | |
| }, | |
| "line": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Line" | |
| }, | |
| "children": { | |
| "items": { | |
| "$ref": "#/$defs/AsyncTaskNode" | |
| }, | |
| "title": "Children", | |
| "type": "array" | |
| } | |
| }, | |
| "title": "AsyncTaskNode", | |
| "type": "object" | |
| }, | |
| "ClassifiedThread": { | |
| "additionalProperties": false, | |
| "description": "Stack and concurrency classification for a target thread.", | |
| "properties": { | |
| "thread_id": { | |
| "description": "Thread KOID.", | |
| "title": "Thread Id", | |
| "type": "integer" | |
| }, | |
| "name": { | |
| "description": "Thread name.", | |
| "title": "Name", | |
| "type": "string" | |
| }, | |
| "classification": { | |
| "description": "Concurrency state classification: blocked_lock, blocked_ipc, port_wait, interrupt_wait, sleeping, active, or unknown.", | |
| "enum": [ | |
| "blocked_lock", | |
| "blocked_ipc", | |
| "port_wait", | |
| "interrupt_wait", | |
| "sleeping", | |
| "active", | |
| "unknown" | |
| ], | |
| "title": "Classification", | |
| "type": "string" | |
| }, | |
| "blocking_symbol": { | |
| "anyOf": [ | |
| { | |
| "type": "string" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "description": "Top blocking syscall or synchronization primitive symbol, if applicable.", | |
| "title": "Blocking Symbol" | |
| }, | |
| "summary": { | |
| "description": "Concise human/agent-readable explanation of what this thread is doing.", | |
| "title": "Summary", | |
| "type": "string" | |
| }, | |
| "top_frames": { | |
| "description": "Formatted top stack frames for this thread.", | |
| "items": { | |
| "type": "string" | |
| }, | |
| "title": "Top Frames", | |
| "type": "array" | |
| } | |
| }, | |
| "required": [ | |
| "thread_id", | |
| "name", | |
| "classification", | |
| "summary" | |
| ], | |
| "title": "ClassifiedThread", | |
| "type": "object" | |
| }, | |
| "ConsoleResponse": { | |
| "additionalProperties": false, | |
| "description": "Response containing the console command output.", | |
| "properties": { | |
| "output": { | |
| "title": "Output", | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "output" | |
| ], | |
| "title": "ConsoleResponse", | |
| "type": "object" | |
| }, | |
| "DiagnoseHangResponse": { | |
| "additionalProperties": false, | |
| "description": "Single-shot concurrency and hang snapshot of a process.", | |
| "properties": { | |
| "pid": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "description": "Target process KOID.", | |
| "title": "Pid" | |
| }, | |
| "dwell_ms": { | |
| "default": 0.0, | |
| "description": "Total time (ms) the process was paused during the snapshot.", | |
| "title": "Dwell Ms", | |
| "type": "number" | |
| }, | |
| "auto_resumed": { | |
| "default": true, | |
| "description": "Whether threads paused for the snapshot were automatically resumed.", | |
| "title": "Auto Resumed", | |
| "type": "boolean" | |
| }, | |
| "summary": { | |
| "description": "High-level diagnostic findings (blocked locks, sync IPCs, async tasks, unserviced interrupts).", | |
| "items": { | |
| "type": "string" | |
| }, | |
| "title": "Summary", | |
| "type": "array" | |
| }, | |
| "threads": { | |
| "description": "All threads in the process classified by their current wait/execution state.", | |
| "items": { | |
| "$ref": "#/$defs/ClassifiedThread" | |
| }, | |
| "title": "Threads", | |
| "type": "array" | |
| }, | |
| "async_tasks": { | |
| "description": "Active async task trees in the process (from zxdb async-backtrace).", | |
| "items": { | |
| "$ref": "#/$defs/AsyncTaskNode" | |
| }, | |
| "title": "Async Tasks", | |
| "type": "array" | |
| }, | |
| "interrupt_handles": { | |
| "description": "Open ZX_OBJ_TYPE_INTERRUPT handles in the process.", | |
| "items": { | |
| "$ref": "#/$defs/HandleEntry" | |
| }, | |
| "title": "Interrupt Handles", | |
| "type": "array" | |
| }, | |
| "channel_handles": { | |
| "description": "Open ZX_OBJ_TYPE_CHANNEL handles in the process.", | |
| "items": { | |
| "$ref": "#/$defs/HandleEntry" | |
| }, | |
| "title": "Channel Handles", | |
| "type": "array" | |
| }, | |
| "port_handles": { | |
| "description": "Open ZX_OBJ_TYPE_PORT handles in the process.", | |
| "items": { | |
| "$ref": "#/$defs/HandleEntry" | |
| }, | |
| "title": "Port Handles", | |
| "type": "array" | |
| } | |
| }, | |
| "title": "DiagnoseHangResponse", | |
| "type": "object" | |
| }, | |
| "DriverHostEntry": { | |
| "additionalProperties": false, | |
| "description": "Information about a driver_host process and its loaded drivers.", | |
| "properties": { | |
| "host_koid": { | |
| "title": "Host Koid", | |
| "type": "integer" | |
| }, | |
| "host_name": { | |
| "default": "", | |
| "title": "Host Name", | |
| "type": "string" | |
| }, | |
| "drivers": { | |
| "items": { | |
| "type": "string" | |
| }, | |
| "title": "Drivers", | |
| "type": "array" | |
| }, | |
| "devices": { | |
| "items": { | |
| "type": "string" | |
| }, | |
| "title": "Devices", | |
| "type": "array" | |
| }, | |
| "colocated": { | |
| "default": false, | |
| "title": "Colocated", | |
| "type": "boolean" | |
| }, | |
| "attached": { | |
| "default": false, | |
| "title": "Attached", | |
| "type": "boolean" | |
| }, | |
| "transport_hazard": { | |
| "default": false, | |
| "title": "Transport Hazard", | |
| "type": "boolean" | |
| }, | |
| "transport_sensitive": { | |
| "items": { | |
| "type": "string" | |
| }, | |
| "title": "Transport Sensitive", | |
| "type": "array" | |
| } | |
| }, | |
| "required": [ | |
| "host_koid" | |
| ], | |
| "title": "DriverHostEntry", | |
| "type": "object" | |
| }, | |
| "DriverListResponse": { | |
| "additionalProperties": false, | |
| "description": "Response for driver-list command.", | |
| "properties": { | |
| "driver_hosts": { | |
| "items": { | |
| "$ref": "#/$defs/DriverHostEntry" | |
| }, | |
| "title": "Driver Hosts", | |
| "type": "array" | |
| } | |
| }, | |
| "required": [ | |
| "driver_hosts" | |
| ], | |
| "title": "DriverListResponse", | |
| "type": "object" | |
| }, | |
| "EvaluateResponse": { | |
| "additionalProperties": false, | |
| "description": "Unified response containing the evaluation result and optional children.", | |
| "properties": { | |
| "result": { | |
| "anyOf": [ | |
| { | |
| "type": "string" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Result" | |
| }, | |
| "type": { | |
| "anyOf": [ | |
| { | |
| "type": "string" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Type" | |
| } | |
| }, | |
| "title": "EvaluateResponse", | |
| "type": "object" | |
| }, | |
| "GetStateResponse": { | |
| "description": "Response for get-state command containing thread list, active\nprocesses, and active breakpoints.", | |
| "properties": { | |
| "threads": { | |
| "items": { | |
| "$ref": "#/$defs/ThreadInfo" | |
| }, | |
| "title": "Threads", | |
| "type": "array" | |
| }, | |
| "processes": { | |
| "anyOf": [ | |
| { | |
| "additionalProperties": { | |
| "type": "string" | |
| }, | |
| "type": "object" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Processes" | |
| }, | |
| "breakpoints": { | |
| "anyOf": [ | |
| { | |
| "additionalProperties": { | |
| "items": { | |
| "type": "integer" | |
| }, | |
| "type": "array" | |
| }, | |
| "type": "object" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Breakpoints" | |
| }, | |
| "watchpoints": { | |
| "anyOf": [ | |
| { | |
| "additionalProperties": { | |
| "$ref": "#/$defs/WatchpointInfo" | |
| }, | |
| "type": "object" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Watchpoints" | |
| }, | |
| "function_breakpoints": { | |
| "anyOf": [ | |
| { | |
| "items": { | |
| "type": "string" | |
| }, | |
| "type": "array" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Function Breakpoints" | |
| }, | |
| "tracepoints": { | |
| "anyOf": [ | |
| { | |
| "items": { | |
| "$ref": "#/$defs/TracepointInfo" | |
| }, | |
| "type": "array" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Tracepoints" | |
| } | |
| }, | |
| "required": [ | |
| "threads" | |
| ], | |
| "title": "GetStateResponse", | |
| "type": "object" | |
| }, | |
| "HandleEntry": { | |
| "additionalProperties": false, | |
| "description": "Information about an open Zircon handle or mapped VMO.", | |
| "properties": { | |
| "handle_value": { | |
| "title": "Handle Value", | |
| "type": "string" | |
| }, | |
| "type": { | |
| "title": "Type", | |
| "type": "string" | |
| }, | |
| "koid": { | |
| "title": "Koid", | |
| "type": "integer" | |
| }, | |
| "related_koid": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Related Koid" | |
| }, | |
| "peer_owner_koid": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Peer Owner Koid" | |
| }, | |
| "rights": { | |
| "items": { | |
| "type": "string" | |
| }, | |
| "title": "Rights", | |
| "type": "array" | |
| }, | |
| "vmo_name": { | |
| "anyOf": [ | |
| { | |
| "type": "string" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Vmo Name" | |
| }, | |
| "vmo_size_bytes": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Vmo Size Bytes" | |
| }, | |
| "cache_policy": { | |
| "anyOf": [ | |
| { | |
| "type": "string" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Cache Policy" | |
| } | |
| }, | |
| "required": [ | |
| "handle_value", | |
| "type", | |
| "koid" | |
| ], | |
| "title": "HandleEntry", | |
| "type": "object" | |
| }, | |
| "HandlesResponse": { | |
| "additionalProperties": false, | |
| "description": "Structured response for the handles command.", | |
| "properties": { | |
| "pid": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Pid" | |
| }, | |
| "handles": { | |
| "items": { | |
| "$ref": "#/$defs/HandleEntry" | |
| }, | |
| "title": "Handles", | |
| "type": "array" | |
| } | |
| }, | |
| "title": "HandlesResponse", | |
| "type": "object" | |
| }, | |
| "MemReadResponse": { | |
| "additionalProperties": false, | |
| "description": "Structured response for the mem-read command.", | |
| "properties": { | |
| "address": { | |
| "title": "Address", | |
| "type": "string" | |
| }, | |
| "size": { | |
| "title": "Size", | |
| "type": "integer" | |
| }, | |
| "hex_bytes": { | |
| "title": "Hex Bytes", | |
| "type": "string" | |
| }, | |
| "u32_le": { | |
| "items": { | |
| "type": "string" | |
| }, | |
| "title": "U32 Le", | |
| "type": "array" | |
| }, | |
| "u64_le": { | |
| "items": { | |
| "type": "string" | |
| }, | |
| "title": "U64 Le", | |
| "type": "array" | |
| }, | |
| "rows": { | |
| "items": { | |
| "$ref": "#/$defs/MemoryRowEntry" | |
| }, | |
| "title": "Rows", | |
| "type": "array" | |
| } | |
| }, | |
| "required": [ | |
| "address", | |
| "size", | |
| "hex_bytes" | |
| ], | |
| "title": "MemReadResponse", | |
| "type": "object" | |
| }, | |
| "MemoryRowEntry": { | |
| "additionalProperties": false, | |
| "description": "A 16-byte row from a memory dump.", | |
| "properties": { | |
| "address": { | |
| "title": "Address", | |
| "type": "string" | |
| }, | |
| "bytes_hex": { | |
| "title": "Bytes Hex", | |
| "type": "string" | |
| }, | |
| "ascii": { | |
| "title": "Ascii", | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "address", | |
| "bytes_hex", | |
| "ascii" | |
| ], | |
| "title": "MemoryRowEntry", | |
| "type": "object" | |
| }, | |
| "ModuleEntry": { | |
| "additionalProperties": false, | |
| "description": "Information about a loaded module (.so / binary) and symbol status.", | |
| "properties": { | |
| "name": { | |
| "title": "Name", | |
| "type": "string" | |
| }, | |
| "base": { | |
| "title": "Base", | |
| "type": "string" | |
| }, | |
| "build_id": { | |
| "anyOf": [ | |
| { | |
| "type": "string" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Build Id" | |
| }, | |
| "symbols_loaded": { | |
| "anyOf": [ | |
| { | |
| "type": "boolean" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Symbols Loaded" | |
| }, | |
| "symbol_file": { | |
| "anyOf": [ | |
| { | |
| "type": "string" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Symbol File" | |
| }, | |
| "files_indexed": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Files Indexed" | |
| }, | |
| "functions_indexed": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Functions Indexed" | |
| } | |
| }, | |
| "required": [ | |
| "name", | |
| "base" | |
| ], | |
| "title": "ModuleEntry", | |
| "type": "object" | |
| }, | |
| "ModulesResponse": { | |
| "additionalProperties": false, | |
| "description": "Structured response for the modules command.", | |
| "properties": { | |
| "pid": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Pid" | |
| }, | |
| "modules": { | |
| "items": { | |
| "$ref": "#/$defs/ModuleEntry" | |
| }, | |
| "title": "Modules", | |
| "type": "array" | |
| } | |
| }, | |
| "title": "ModulesResponse", | |
| "type": "object" | |
| }, | |
| "ProcessStackTraceResponse": { | |
| "description": "Response containing stack traces for all threads in a process.", | |
| "properties": { | |
| "process_id": { | |
| "title": "Process Id", | |
| "type": "integer" | |
| }, | |
| "stacks": { | |
| "items": { | |
| "$ref": "#/$defs/ThreadStackTraceResponse" | |
| }, | |
| "title": "Stacks", | |
| "type": "array" | |
| } | |
| }, | |
| "required": [ | |
| "process_id", | |
| "stacks" | |
| ], | |
| "title": "ProcessStackTraceResponse", | |
| "type": "object" | |
| }, | |
| "Source": { | |
| "description": "A Source is a descriptor for source code.\n\nAttributes:\n name: The short name of the source.\n path: The path of the source to be shown in the UI.\n source_reference: If the value > 0 the contents of the source must be\n retrieved through the `source` request.\n origin: The origin of this source (e.g., 'internal module', 'inlined\n content from source map').", | |
| "properties": { | |
| "name": { | |
| "anyOf": [ | |
| { | |
| "type": "string" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Name" | |
| }, | |
| "path": { | |
| "anyOf": [ | |
| { | |
| "type": "string" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Path" | |
| }, | |
| "sourceReference": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Sourcereference" | |
| }, | |
| "origin": { | |
| "anyOf": [ | |
| { | |
| "type": "string" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Origin" | |
| } | |
| }, | |
| "title": "Source", | |
| "type": "object" | |
| }, | |
| "StackFrame": { | |
| "description": "A stack frame representation exposing frame_index instead of DAP frameId.", | |
| "properties": { | |
| "frame_index": { | |
| "title": "Frame Index", | |
| "type": "integer" | |
| }, | |
| "name": { | |
| "title": "Name", | |
| "type": "string" | |
| }, | |
| "line": { | |
| "title": "Line", | |
| "type": "integer" | |
| }, | |
| "column": { | |
| "title": "Column", | |
| "type": "integer" | |
| }, | |
| "source": { | |
| "anyOf": [ | |
| { | |
| "$ref": "#/$defs/Source" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null | |
| }, | |
| "presentation_hint": { | |
| "anyOf": [ | |
| { | |
| "type": "string" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Presentation Hint" | |
| }, | |
| "trust": { | |
| "anyOf": [ | |
| { | |
| "type": "string" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Trust" | |
| } | |
| }, | |
| "required": [ | |
| "frame_index", | |
| "name", | |
| "line", | |
| "column" | |
| ], | |
| "title": "StackFrame", | |
| "type": "object" | |
| }, | |
| "ThreadInfo": { | |
| "description": "Information about a single thread.", | |
| "properties": { | |
| "id": { | |
| "title": "Id", | |
| "type": "integer" | |
| }, | |
| "name": { | |
| "title": "Name", | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "id", | |
| "name" | |
| ], | |
| "title": "ThreadInfo", | |
| "type": "object" | |
| }, | |
| "ThreadStackTraceResponse": { | |
| "description": "Stack trace for a single thread in a process.", | |
| "properties": { | |
| "thread_id": { | |
| "title": "Thread Id", | |
| "type": "integer" | |
| }, | |
| "stack_frames": { | |
| "items": { | |
| "$ref": "#/$defs/StackFrame" | |
| }, | |
| "title": "Stack Frames", | |
| "type": "array" | |
| }, | |
| "total_frames": { | |
| "title": "Total Frames", | |
| "type": "integer" | |
| } | |
| }, | |
| "required": [ | |
| "thread_id", | |
| "stack_frames", | |
| "total_frames" | |
| ], | |
| "title": "ThreadStackTraceResponse", | |
| "type": "object" | |
| }, | |
| "TracepointInfo": { | |
| "additionalProperties": false, | |
| "description": "Configuration and runtime state of a non-stopping tracepoint.", | |
| "properties": { | |
| "id": { | |
| "title": "Id", | |
| "type": "integer" | |
| }, | |
| "location": { | |
| "title": "Location", | |
| "type": "string" | |
| }, | |
| "file": { | |
| "anyOf": [ | |
| { | |
| "type": "string" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "File" | |
| }, | |
| "line": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Line" | |
| }, | |
| "function": { | |
| "anyOf": [ | |
| { | |
| "type": "string" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Function" | |
| }, | |
| "watch": { | |
| "anyOf": [ | |
| { | |
| "type": "string" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Watch" | |
| }, | |
| "data_id": { | |
| "anyOf": [ | |
| { | |
| "type": "string" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Data Id" | |
| }, | |
| "size": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Size" | |
| }, | |
| "access_type": { | |
| "anyOf": [ | |
| { | |
| "enum": [ | |
| "write", | |
| "readWrite" | |
| ], | |
| "type": "string" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Access Type" | |
| }, | |
| "condition": { | |
| "anyOf": [ | |
| { | |
| "type": "string" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Condition" | |
| }, | |
| "expressions": { | |
| "items": { | |
| "type": "string" | |
| }, | |
| "title": "Expressions", | |
| "type": "array" | |
| }, | |
| "capture": { | |
| "items": { | |
| "enum": [ | |
| "frame", | |
| "backtrace", | |
| "locals", | |
| "registers" | |
| ], | |
| "type": "string" | |
| }, | |
| "title": "Capture", | |
| "type": "array" | |
| }, | |
| "raw_backtrace": { | |
| "default": false, | |
| "title": "Raw Backtrace", | |
| "type": "boolean" | |
| }, | |
| "max_matching_frames": { | |
| "default": 10, | |
| "title": "Max Matching Frames", | |
| "type": "integer" | |
| }, | |
| "max_hits": { | |
| "default": 20, | |
| "title": "Max Hits", | |
| "type": "integer" | |
| }, | |
| "hit_count": { | |
| "default": 0, | |
| "title": "Hit Count", | |
| "type": "integer" | |
| }, | |
| "enabled": { | |
| "default": true, | |
| "title": "Enabled", | |
| "type": "boolean" | |
| }, | |
| "auto_disabled": { | |
| "default": false, | |
| "title": "Auto Disabled", | |
| "type": "boolean" | |
| }, | |
| "verified": { | |
| "default": false, | |
| "title": "Verified", | |
| "type": "boolean" | |
| }, | |
| "message": { | |
| "anyOf": [ | |
| { | |
| "type": "string" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "description": "Verification or error message from DAP", | |
| "title": "Message" | |
| } | |
| }, | |
| "required": [ | |
| "id", | |
| "location" | |
| ], | |
| "title": "TracepointInfo", | |
| "type": "object" | |
| }, | |
| "TracepointResponse": { | |
| "additionalProperties": false, | |
| "description": "Response for tracepoint command.", | |
| "properties": { | |
| "tracepoints": { | |
| "items": { | |
| "$ref": "#/$defs/TracepointInfo" | |
| }, | |
| "title": "Tracepoints", | |
| "type": "array" | |
| } | |
| }, | |
| "required": [ | |
| "tracepoints" | |
| ], | |
| "title": "TracepointResponse", | |
| "type": "object" | |
| }, | |
| "WatchpointInfo": { | |
| "description": "Information about an active data breakpoint (watchpoint).\n\n`verified` and `message` reflect the latest status reported by zxdb, either\nfrom the `setDataBreakpoints` response or from a later asynchronous\n`breakpoint` \"changed\" event.", | |
| "properties": { | |
| "data_id": { | |
| "title": "Data Id", | |
| "type": "string" | |
| }, | |
| "expression": { | |
| "title": "Expression", | |
| "type": "string" | |
| }, | |
| "thread_id": { | |
| "title": "Thread Id", | |
| "type": "integer" | |
| }, | |
| "frame_index": { | |
| "title": "Frame Index", | |
| "type": "integer" | |
| }, | |
| "access_type": { | |
| "enum": [ | |
| "write", | |
| "readWrite" | |
| ], | |
| "title": "Access Type", | |
| "type": "string" | |
| }, | |
| "condition": { | |
| "anyOf": [ | |
| { | |
| "type": "string" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Condition" | |
| }, | |
| "hit_condition": { | |
| "anyOf": [ | |
| { | |
| "type": "string" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Hit Condition" | |
| }, | |
| "verified": { | |
| "default": false, | |
| "title": "Verified", | |
| "type": "boolean" | |
| }, | |
| "message": { | |
| "anyOf": [ | |
| { | |
| "type": "string" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Message" | |
| } | |
| }, | |
| "required": [ | |
| "data_id", | |
| "expression", | |
| "thread_id", | |
| "frame_index", | |
| "access_type" | |
| ], | |
| "title": "WatchpointInfo", | |
| "type": "object" | |
| } | |
| }, | |
| "description": "Standard response wrapper.", | |
| "properties": { | |
| "success": { | |
| "title": "Success", | |
| "type": "boolean" | |
| }, | |
| "message": { | |
| "anyOf": [ | |
| { | |
| "type": "string" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Message" | |
| }, | |
| "body": { | |
| "anyOf": [ | |
| { | |
| "$ref": "#/$defs/GetStateResponse" | |
| }, | |
| { | |
| "$ref": "#/$defs/ConsoleResponse" | |
| }, | |
| { | |
| "$ref": "#/$defs/EvaluateResponse" | |
| }, | |
| { | |
| "$ref": "#/$defs/ThreadStackTraceResponse" | |
| }, | |
| { | |
| "$ref": "#/$defs/ProcessStackTraceResponse" | |
| }, | |
| { | |
| "$ref": "#/$defs/AsyncBacktraceResponse" | |
| }, | |
| { | |
| "$ref": "#/$defs/ModulesResponse" | |
| }, | |
| { | |
| "$ref": "#/$defs/AspaceResponse" | |
| }, | |
| { | |
| "$ref": "#/$defs/HandlesResponse" | |
| }, | |
| { | |
| "$ref": "#/$defs/MemReadResponse" | |
| }, | |
| { | |
| "$ref": "#/$defs/DriverListResponse" | |
| }, | |
| { | |
| "$ref": "#/$defs/TracepointResponse" | |
| }, | |
| { | |
| "$ref": "#/$defs/DiagnoseHangResponse" | |
| }, | |
| { | |
| "additionalProperties": true, | |
| "type": "object" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Body" | |
| }, | |
| "events": { | |
| "anyOf": [ | |
| { | |
| "items": { | |
| "additionalProperties": true, | |
| "type": "object" | |
| }, | |
| "type": "array" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Events" | |
| } | |
| }, | |
| "required": [ | |
| "success" | |
| ], | |
| "title": "Response", | |
| "type": "object" | |
| } | |
| } |