Faster stepping amidst breakpoints

Mark Kettenis mark.kettenis@xs4all.nl
Sun Feb 13 15:17:00 GMT 2011


> Date: Tue, 1 Feb 2011 07:23:38 +0400
> From: Joel Brobecker <brobecker@adacore.com>
> 
> > As far as I can remember (you know how much GDB development I do
> > nowadays), the only risks were if GDB crashed and left the application
> > with breakpoints inserted.  Of course, I'm in favor of GDB not
> > crashing.
> 
> I see this as an acceptable outcome of a debugger crash.  I am guessing
> that in most cases, people debug their program, and then want it killed,
> so leaving the inferior behind with breakpoints inserted won't matter
> much (or, not as much as having their session brutally interrupted by
> the crash itself).  For the small number of those for whom it matters,
> they can change the switch back...

You're probably right for the case where people start the program from
GDB, but I guess that when people attach to an already running process
they typically don't want to kill it when they're done with debugging.

That said, it is probably a bad idea to have different behaviour for
"run" and "attach" in this case.  Let's throw the switch after the 7.3
release and see if people even notice.



More information about the Gdb-patches mailing list