Appearance
Guard
cpp
#include <Components/CPU/Peddle/PeddleDebuggerTypes.h>cpp
struct GuardDefined in Components/CPU/Peddle/PeddleDebuggerTypes.h:15
Base structure for a single breakpoint or watchpoint.
Public Attributes
| Return | Name | Description |
|---|---|---|
u32 | addr | The observed address. |
bool | enabled | Disabled guards never trigger. |
isize | hits | Counts the number of hits. |
isize | ignore | Ignore counter. |
addr
cpp
u32 addrDefined in Components/CPU/Peddle/PeddleDebuggerTypes.h:18
The observed address.
enabled
cpp
bool enabledDefined in Components/CPU/Peddle/PeddleDebuggerTypes.h:21
Disabled guards never trigger.
hits
cpp
isize hitsDefined in Components/CPU/Peddle/PeddleDebuggerTypes.h:24
Counts the number of hits.
ignore
cpp
isize ignoreDefined in Components/CPU/Peddle/PeddleDebuggerTypes.h:27
Ignore counter.
Public Methods
| Return | Name | Description |
|---|---|---|
bool | eval | Returns true if the guard hits. |
void | moveTo | Replaces the address by another. |
eval
cpp
bool eval(u32 addr)Defined in Components/CPU/Peddle/PeddleDebuggerTypes.h:32
Returns true if the guard hits.
moveTo
cpp
void moveTo(u32 newAddr)Defined in Components/CPU/Peddle/PeddleDebuggerTypes.h:35
Replaces the address by another.