arm hardware breakpoint 与 watchpoint 原理

aarch32 linux4.9

kernel 有breakpoint的编码实例data_breakpoint.c

相关函数:

register_wide_hw_breakpoint //kernel space 地址

register_user_hw_breakpoint //user space 地址

breakpoint 与 watchpoint 的原理需要查阅armv7_architecture_reference_manual

watchpoint:If the cause of the debug exception is a Watchpoint debug event, then a Data Abort exception is generated

armv7  trf 文档中对二者的定义如下

你可能感兴趣的:(ARM,LINUX,C语言)