Does hardware watchpoint work on Linux/x86-64?

Daniel Jacobowitz drow@false.org
Thu Apr 17 02:33:00 GMT 2008


On Wed, Apr 16, 2008 at 03:24:31PM -0700, H.J. Lu wrote:
> (gdb) watch foo
> Watchpoint 1: foo
> (gdb) q

Oh this.  Start the program before you set the watchpoint.

As long as hardware watchpoints and software watchpoints are selected
when they are set, instead of when they are inserted, we will have
this problem.  Non-x86 targets have had it for a long time; it is new
on x86, because it only worked before by virtue of breaking remote
watchpoints.

-- 
Daniel Jacobowitz
CodeSourcery



More information about the Gdb mailing list