This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
RE: Different output from -gdb-show than show
> -----Original Message-----
> From: Pedro Alves [mailto:pedro@codesourcery.com]
> Sent: Tuesday, August 31, 2010 4:03 PM
> To: Marc Khouzam
> Cc: 'Michael Snyder'; 'gdb@sourceware.org'
> Subject: Re: Different output from -gdb-show than show
>
> >
> > Here is what I'm planning to do to see if a target supports reverse
> > execution:
> >
> > -gdb-set exec-direction reverse
> > show exec-direction
> > -gdb-set exec-direction forward
> >
> > If the 'show' command shows "Reverse", I'll know that the target
> > supports reverse execution. (I have to do it like this because
> > I also want it to work for 7.0 and 7.1)
> >
> > That is the only thing I found that gave me that info without
> > side-effects. Makes sense?
>
> Yes. You may want to issue an "-gdb-set exec-direction forward"
> upfront to clean up any stale state from a previous run/target
> as well...
Should be new sessions every time with Eclipse (at least for now).
> Also, it may wreck havoc in non-stop if the target is
> already executing...
You are right. Thanks for pointing it out.
Nothing I can do in that case then?
> I think listing support for reverse
> in "-list-target-features" would be nice?
Definitely sounds like there should be some way to get that info.