Skip to content

Guard ​

cpp
#include <Components/CPU/Peddle/PeddleDebuggerTypes.h>
cpp
struct Guard

Defined in Components/CPU/Peddle/PeddleDebuggerTypes.h:15

Base structure for a single breakpoint or watchpoint.

Public Attributes ​

ReturnNameDescription
u32addrThe observed address.
boolenabledDisabled guards never trigger.
isizehitsCounts the number of hits.
isizeignoreIgnore counter.

addr ​

cpp
u32 addr

Defined in Components/CPU/Peddle/PeddleDebuggerTypes.h:18

The observed address.


enabled ​

cpp
bool enabled

Defined in Components/CPU/Peddle/PeddleDebuggerTypes.h:21

Disabled guards never trigger.


hits ​

cpp
isize hits

Defined in Components/CPU/Peddle/PeddleDebuggerTypes.h:24

Counts the number of hits.


ignore ​

cpp
isize ignore

Defined in Components/CPU/Peddle/PeddleDebuggerTypes.h:27

Ignore counter.

Public Methods ​

ReturnNameDescription
boolevalReturns true if the guard hits.
voidmoveToReplaces 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.