This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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
watchpoints.

-- 
Daniel Jacobowitz
CodeSourcery


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]