DebugHardwareBreakPointInterface Class Reference

#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.

公共成员函数

MAXON_METHOD Result < void >  RemoveHardwareBreakpoint ()

静态公共成员函数

static MAXON_METHOD Result < DebugHardwareBreakPointRef >  SetHardwareBreakpoint ( HARDWAREBREAKPOINTTYPE type, HARDWAREBREAKPOINTSIZE size, void *watchAddress)

静态公共属性

static const Int   MAXHARDWAREBREAKPOINTS

私有成员函数

  MAXON_INTERFACE_NONVIRTUAL ( DebugHardwareBreakPointInterface , MAXON_REFERENCE_NORMAL , "net.maxon.interface.debughardwarebreakpoint")

成员函数文档编制

◆  MAXON_INTERFACE_NONVIRTUAL()

MAXON_INTERFACE_NONVIRTUAL ( DebugHardwareBreakPointInterface   ,
MAXON_REFERENCE_NORMAL   ,
"net.maxon.interface.debughardwarebreakpoint"   
)
private

◆  SetHardwareBreakpoint()

static MAXON_METHOD Result <DebugHardwareBreakPointRef> SetHardwareBreakpoint ( HARDWAREBREAKPOINTTYPE   type ,
HARDWAREBREAKPOINTSIZE   size ,
void *  watchAddress  
)
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.
返回
OK on success.

◆  RemoveHardwareBreakpoint()

MAXON_METHOD Result <void> RemoveHardwareBreakpoint ( )

Removes a hardware breakpoint from all threads.

返回
OK on success.

Member Data Documentation

◆  MAXHARDWAREBREAKPOINTS

const Int MAXHARDWAREBREAKPOINTS static