Are hardware watchpoints available only for specific memory addresses?

I have gdb 7.3 and a device that supports hardware watchpoints.

I type the following commands:

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) 

Why was the hardware monitoring point not accepted after the first command? What's wrong?

+4
source share
1 answer

Why was there no equipment observation point after the first command?

You did not tell us which processor you are using.

I assume that your processor does not support hardware watchpoints for addresses that are not aligned on a 4-byte boundary.

GDB cannot set a hardware watchpoint to an address if your hardware does not support such watchpoints.

+4
source

Source: https://habr.com/ru/post/1412732/


All Articles