This is the mail archive of the
mailing list for the GDB project.
Re: Does hardware watchpoint work on Linux/x86-64?
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