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 Wed, Jun 25, 2008 at 03:14:38PM +0100, Pedro Alves wrote:
> A Wednesday 25 June 2008 14:34:57, Daniel Jacobowitz wrote:
> >
> > I think it should already be auto. can-use-software-singlestep is
> > unintuitive - either do use it, don't use it, or use GDB's best
> > judgement. And if the user selects to use it and it isn't supported,
> > that's an error when we next want to singlestep. WDYT?
>
> Well, not really auto. If a ARM stub does software singlestepping itself
> (say we add it to gdbserver), gdb will still do software
> single-stepping (breakpoint dance), wont it?
What Joel said elsewhere in the thread just now. If we get a stub
that reports definitively that it can single step, that should take
priority over GDB knowing that software singlestep is implemented for
this architecture.
Um, uh-oh. This will break the overloading of software single step
for bypassing atomic operations. Clearly more thought is required!
Another unfortunate note: we can't trust the vCont reply for this even
though it's clearly the right thing :-( Since current versions of GDB
reject replies without s/S.
--
Daniel Jacobowitz
CodeSourcery