GDB MI Reverse Commands added [1 of 3]

Vladimir Prus vladimir@codesourcery.com
Tue Dec 22 11:48:00 GMT 2009


On Tuesday 22 December 2009 14:34:00 Jakob Engblom wrote:

> > > 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?

The from_tty should be 0. 'args' are probably not used for continue anyway,
and surely are not used for MI -exec-continue, so can be NULL.

Hope this helps.

- Volodya



More information about the Gdb-patches mailing list