emu_hook_call
Stubs a function at a specified address by skipping execution and returning a chosen value, preventing unknown-call stops when emulating libc or API calls.
Instructions
Stub a function at addr: skip it and return return_value.
Use for libc/API stubs such as malloc, strlen, printf. Prevents unknown-call
stops. A float return_value is returned in the floating point return
register. Returns confirmation.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"addr": "<addr>",
"return_value": "<return_value>"
},
"name": "emu_hook_call"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| addr | Yes | ||
| name | No | ||
| return_value | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |