Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Turn software singlestep off?
@ 2008-06-24  2:50 Michael Snyder
  2008-06-24  2:59 ` Joel Brobecker
  2008-06-24 13:11 ` Daniel Jacobowitz
  0 siblings, 2 replies; 4+ messages in thread
From: Michael Snyder @ 2008-06-24  2:50 UTC (permalink / raw)
  To: gdb

Got a kind of a basic question here...

Is there a way to tell gdb "don't use software
singlestep, even though you think the architecture
calls for it"?

I thought there used to be, but now I can't find it.




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Turn software singlestep off?
  2008-06-24  2:50 Turn software singlestep off? Michael Snyder
@ 2008-06-24  2:59 ` Joel Brobecker
  2008-06-24  3:12   ` Michael Snyder
  2008-06-24 13:11 ` Daniel Jacobowitz
  1 sibling, 1 reply; 4+ messages in thread
From: Joel Brobecker @ 2008-06-24  2:59 UTC (permalink / raw)
  To: Michael Snyder; +Cc: gdb

> I thought there used to be, but now I can't find it.

I don't think there is such a switch either. I don't think it would
be very hard to implement, though... And it could actually be useful
on architectures such as Tru64 (I think) where we enable SW single step
because the kernel stepping doesn't work for threaded program. Such
a switch would probably give the user a chance to have better
performance when debugging a program that doesn't use threads...
It would be a pretty geeky switch, though, and I would be ready to
bet that the number of people knowing about it would remain very small.

-- 
Joel


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Turn software singlestep off?
  2008-06-24  2:59 ` Joel Brobecker
@ 2008-06-24  3:12   ` Michael Snyder
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Snyder @ 2008-06-24  3:12 UTC (permalink / raw)
  To: Joel Brobecker; +Cc: gdb

On Mon, 2008-06-23 at 22:58 -0400, Joel Brobecker wrote:
> > I thought there used to be, but now I can't find it.
> 
> I don't think there is such a switch either. I don't think it would
> be very hard to implement, though... And it could actually be useful
> on architectures such as Tru64 (I think) where we enable SW single step
> because the kernel stepping doesn't work for threaded program. Such
> a switch would probably give the user a chance to have better
> performance when debugging a program that doesn't use threads...
> It would be a pretty geeky switch, though, and I would be ready to
> bet that the number of people knowing about it would remain very small.

Thanks.  Sounds about right.

There could be other contexts where it would be useful.
Imagine you're talking to a remote target, but you (gdb)
don't really know what it is.

It could be a simulator.  Or a record/replay type of thing.
Something that wouldn't have a problem with singlestep, 
even though the native architecture would.

However, here's my real reason for asking:  I'm trying
to implement reverse debugging for mips.  Reverse
debugging and software singlestep don't mix very well.
GDB would have to figure out where to put the singlestep
breakpoint.  Singlestepping thru a jump, you can do that
going forward, but not going backward!   ;-)




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Turn software singlestep off?
  2008-06-24  2:50 Turn software singlestep off? Michael Snyder
  2008-06-24  2:59 ` Joel Brobecker
@ 2008-06-24 13:11 ` Daniel Jacobowitz
  1 sibling, 0 replies; 4+ messages in thread
From: Daniel Jacobowitz @ 2008-06-24 13:11 UTC (permalink / raw)
  To: Michael Snyder; +Cc: gdb

On Mon, Jun 23, 2008 at 07:49:56PM -0700, Michael Snyder wrote:
> Got a kind of a basic question here...
> 
> Is there a way to tell gdb "don't use software
> singlestep, even though you think the architecture
> calls for it"?
> 
> I thought there used to be, but now I can't find it.

No, there never has been one (at least not since I started working on
GDB).

-- 
Daniel Jacobowitz
CodeSourcery


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-06-24 13:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-24  2:50 Turn software singlestep off? Michael Snyder
2008-06-24  2:59 ` Joel Brobecker
2008-06-24  3:12   ` Michael Snyder
2008-06-24 13:11 ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox