#include <debug_hardwarebreakpoints.h>
WARNING: This functionality must not be used in production code. it's only allowed to use this for debugging purposes and needs to be removed/deactivated before submitting. Windows: Please note that intel cpus support only 4 hardware breakpoints. If you try to set more than 4 breakpoints an error will be returned. A good praxis is to create a Ringbuffer<DebugHardwareBreakPointRef, DebugHardwareBreakPointInterface::MAXHARDWAREBREAKPOINTS> and free the oldest hardware breakpoints before creating new one.
Public Member Functions | |
MAXON_METHOD Result< void > | RemoveHardwareBreakpoint () |
Static Public Member Functions | |
static MAXON_METHOD Result< DebugHardwareBreakPointRef > | SetHardwareBreakpoint (HARDWAREBREAKPOINTTYPE type, HARDWAREBREAKPOINTSIZE size, void *watchAddress) |
Static Public Attributes | |
static const Int | MAXHARDWAREBREAKPOINTS |
Private Member Functions | |
MAXON_INTERFACE_NONVIRTUAL (DebugHardwareBreakPointInterface, MAXON_REFERENCE_NORMAL, "net.maxon.interface.debughardwarebreakpoint", MAXON_IMPLEMENTATION_MODULE("net.maxon.kernel")) | |
|
private |
|
static |
Sets a hardware breakpoint for all running threads. When the program hit the watched memory a single_step exception will be fired and the debugger stops at this point where the memory is accessed.
[in] | type | Trigger type of the breakpoint. |
[in] | size | Number of bytes to be watched starting from watchAddress. |
[in] | watchAddress | Start address of the watched memory. |
MAXON_METHOD Result<void> RemoveHardwareBreakpoint | ( | ) |
Removes a hardware breakpoint from all threads.
|
static |