watchpoint
Sets a memory access breakpoint that holds a PlayStation 2 program when it reads or writes a chosen variable or hardware register, helping trace what touches that address.
Instructions
Sets the watch: the EE's program is held when it stores to an address (access
"write"), loads from it ("read"), or either ("any"). run and resume then return with
the state "held", and held says what was caught. It's for finding what touches a
variable or a hardware register. There is one watch, kept until it's removed or set
elsewhere; remove takes it away.
length is how many bytes from address are watched, a power of two, and the address
is rounded down to a multiple of it. The program is held at the instruction that's about
to make the access, with the access not yet made: a store's value is in the register
it's stored from, and step does it.
With value only an access of that value is caught: the 32 bits stored or loaded, or
those of them set in value_mask. A store of the value is held before it's made, as
any store is. A load can only be known by what it loaded: the program is held a few
instructions after it, with the load made.
On a console it catches the program's own accesses, in its threads: not the kernel's,
not an interrupt handler's, and not the GS's display registers at 0x12000000 to
0x12000fff, whose writes display gives instead.
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": "watchpoint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | No | ||
| access | No | write | |
| length | No | ||
| remove | No | ||
| address | No | ||
| value_mask | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||