read_registers
Reads all core registers (R0-R12, SP, LR, PC, xPSR) from a halted ARM Cortex-M target. Automatically halts the target if not already paused.
Instructions
读取 ARM Cortex-M CPU 所有核心寄存器。 目标需处于暂停状态(不暂停会自动暂停)。
Returns: 寄存器名称到值的映射,包括 R0-R12、SP、LR、PC、xPSR 等。
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "read_registers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |