This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] set/show enable-software-singlestep
On Thu, 2008-07-10 at 18:47 -0400, Daniel Jacobowitz wrote:
> On Thu, Jul 10, 2008 at 12:07:19PM +0100, Pedro Alves wrote:
> > I had understood the consensus was that the command would be
> > useful for now.
> >
> > It would be really nice if someone that had a target that
> > always required disabling software-singlestepping stepped forward
> > to add the GDB/remote smarts to do it automatically, though. ;-)
>
> I'd like to have some conclusion on how normal software single step
> and special software single step interact. Are all the things handled
> in GDB's software single step routine also the responsibility of any
> stub that claims single step support?
>
> Which is not how it works today - we let a powerpc gdbserver single
> step most things, but detect atomic sequences in the client. This
> avoids duplicating the logic across all stubs, but is slower.
>
> And do these special stepping types get turned off if you disable
> software single stepping manually?
Well, it seems to me that "normal single-step" is the base
case, and "software single-step" is the special case.
By telling gdb *not* to use software single-step, we're
just telling it to revert to the "base" behavior, whatever
that might be.
It doesn't seem to me that the non-software-singlestep
should then be obliged to emulate everything that might
have been done by the special-case software singlestep.