官术网_书友最值得收藏!

Debug control register (DR7)

DR7 defines how the breakpoints set in Debug Address Registers should be interpreted by the processor and whether they should be interpreted at all.

The bits layout of this register is shown in the following table:

Table 3: DR7 bit layout

L* bits, when set to 1, enable breakpoint at the address which is specified in the corresponding Debug Address Register locally--within a task. These bits are reset by the processor on each task switch. G* bits, on the contrary, enable breakpoints globally--for all tasks, meaning that these bits are not reset by the processor.

The R/W* bits specify breakpoint conditions, as follows:

  • 00: Break on instruction execution
  • 01: Break when the specified address is accessed for writing only
  • 10: Undefined
  • 11: Break on either read or write access or when an instruction at the specified address is executed

The LEN* bits specify the size of a breakpoint in bytes, thus, allowing coverage of more than one instruction or more than one byte of data:

  • 00: Breakpoint is 1-byte long
  • 01: Breakpoint is 2-bytes long
  • 10: Breakpoint is 8-bytes long (long mode only)
  • 11: Breakpoint is 4-bytes long
主站蜘蛛池模板: 永胜县| 四平市| 淮滨县| 白银市| 榆社县| 绥滨县| 游戏| 宁南县| 临沭县| 临泉县| 博客| 惠水县| 炉霍县| 福安市| 义乌市| 马尔康县| 阿拉善盟| 建瓯市| 深水埗区| 济阳县| 嘉义县| 行唐县| 玉屏| 芦溪县| 连平县| 琼结县| 托里县| 精河县| 宜城市| 陆丰市| 田东县| 姚安县| 河西区| 乐清市| 宁武县| 平泉县| 读书| 博兴县| 怀宁县| 武义县| 英超|