This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Write watchpoints
On Thu, Mar 06, 2008 at 11:00:40AM +0300, Vladimir Prus wrote:
> 1. HAVE_STEPPABLE_WATCHPOINT tells that you can just single-step over the
> watchpoint, while it's set, and it won't fire during single-stepping.
> The macro basically looks at to_have_steppable_watchpoint field in target.
> 2. gdbarch_have_nonsteppable_watchpoint tells that we have to single-step
> over watchpoint, while it's disabled.
>
> It appears that you need to arrange for exactly one of those to return true.
Yes, this sounds like a nonsteppable watchpoint. The default, if
neither of those is set, is for continuable watchpoints - ones we can
continue through once they've been hit.
--
Daniel Jacobowitz
CodeSourcery