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


> Date: Fri, 1 Apr 2005 09:11:05 -0500
> From: Daniel Jacobowitz <drow@false.org>
> Cc: GDB <gdb@sources.redhat.com>
> 
> 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...

That's true, but running the code that checks whether the watchpoint
is still in scope after each instruction would slow down GDB even
more, while the scope breakpoint doesn't add any slowdown.

Of course, this is all based on speculative arguments, at least from
my side, so it could be 100% wrong.  If someone who reads this knows
for a fact why scope breakpoints were introduced, please speak up.


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