4
我有gdb 7.3和支持硬件觀察點的設備。硬件觀察點僅適用於某些內存地址嗎?
I型等隨之而來的命令:
Breakpoint 1, 0x000db808 in ??()
(gdb) info break
Num Type Disp Enb Address What
1 breakpoint keep y 0x000db808
breakpoint already hit 1 time
(gdb) watch *0x15588a
Watchpoint 2: *0x15588a
(gdb) watch *0x1557f8
Hardware watchpoint 3: *0x1557f8
(gdb) info break
Num Type Disp Enb Address What
1 breakpoint keep y 0x000db808
breakpoint already hit 1 time
2 watchpoint keep y *0x15588a
3 hw watchpoint keep y *0x1557f8
(gdb)
爲什麼沒有硬件檢測點的第一個命令後接受? 有什麼不對?
是的,你說得很對。我的ARMv7處理器僅支持在4字節邊界上對齊的地址的硬件觀察點。非常感謝! –