Function ctru_sys::svcSetHardwareBreakPoint
source · pub unsafe extern "C" fn svcSetHardwareBreakPoint(
registerId: s32,
control: u32_,
value: u32_
) -> Result
Expand description
Sets an hardware breakpoint or watchpoint. This is an interface to the BRP/WRP registers, see http://infocenter.arm.com/help/topic/com.arm.doc.ddi0360f/CEGEBGFC.html .
§Arguments
registerId
- range 0..5 = breakpoints (BRP0-5), 0x100..0x101 = watchpoints (WRP0-1). The previous stop point for the register is disabled.control
- Value of the control regiser.value
- Value of the value register: either and address (if bit21 of control is clear) or the debug handle of a process to fetch the context ID of.