read_variable
Read a global variable's current value by name, returning its address, type, size, raw hex, and decoded value. Requires load_elf() and connect() calls beforehand.
Instructions
按变量名读取全局变量的当前值。 需要先调用 load_elf() 和 connect()。 目标可以处于运行或暂停状态(建议暂停以获得一致读数)。
Args: name: 全局变量名,如 "g_counter"、"SystemCoreClock"、"g_state"。
Returns: 变量名、地址、类型、大小、原始十六进制值和解码后的值。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |