GDB MI Reverse Commands added [1 of 3]

Jakob Engblom jakob@virtutech.com
Tue Dec 22 11:34:00 GMT 2009


> > Can someone familiar with the main reverse code illuminate me on how to call
> into the reverse code in teh right way?  It seems that the reverse.c code has
> already changed from the code that was (bad style) copied into mi-main.c...
> which is exactly what we want to avoid in the first place.
> >
> > Or is the logical thing to do from MI to just call
> >
> > static void
> > reverse_continue (char *args, int from_tty)
> > {
> >   exec_reverse_once ("continue", args, from_tty);
> > }
> >
> > As the implementation of reverse continue?  This does looks like the we
> submitted has rotted since the patch was submitted...
> 
> Just to clarify -- who's got the ball here? Calling 'reverse_continue' sounds
> like reasonable thing to me
> if one wants to do a reverse continue ;-)

I think the ball is mine. 

But I need to understand how to put the two things together, and for that I need
some help by the people who did reverse.c. 

In particular, from MI, what should the "from_tty" argument be? And the "args"?
MI args look different from the command-line arguments to me, so how can one
convert between the two?

I also have a gdb 7.0-compatible version of the current patch brewing, the one
submitted in August was really against 6.8, and is thus really a bit out of
date.  We are currently shipping this patch with Simics, along with a patched
gdb that supports reverse over MI for the benefit of our Eclipse integration. 

Best regards,

/jakob

_______________________________________________________

Jakob Engblom, PhD, Technical Marketing Manager

Virtutech                   Direct: +46 8 690 07 47   
Drottningholmsvägen 22      Mobile: +46 709 242 646  
11243 Stockholm             Web:    www.virtutech.com 
Sweden
________________________________________________________
  






More information about the Gdb-patches mailing list