This is the mail archive of the gdb@sources.redhat.com 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: [mi] watchpoint-scope exec async command


On Fri, Apr 01, 2005 at 11:06:05AM +0200, Eli Zaretskii wrote:
> > Date: Thu, 31 Mar 2005 15:58:26 -0500
> > From: Bob Rossi <bob@brasko.net>
> > Cc: GDB <gdb@sources.redhat.com>
> > 
> > I do have another question though. If GDB has another mecanism to
> > determine when hardware watchpoints go out of scope, why does it add the
> > scope watchpoint at all?
> 
> I think that the scope breakpoint was introduced when software
> watchpoints were coded.  Software watchpoints do need the scope
> breakpoint, and as you demonstrated, there's no problem in that case.
> That is why I think we should simply not use the scope breakpoint for
> hardware watchpoints.

Actually, I don't think software watchpoints need it at all.  A
software watchpoint is implemented primarily by single-stepping the
inferior, right?  Well, after every single-step we know whether or not
the breakpoint is still in scope...

-- 
Daniel Jacobowitz
CodeSourcery, LLC


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