This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: GDB MI Reverse Commands added [1 of 3]
- From: Vladimir Prus <vladimir at codesourcery dot com>
- To: "Jakob Engblom" <jakob at virtutech dot com>
- Cc: "'Michael Snyder'" <msnyder at vmware dot com>, gdb-patches at sourceware dot org, "'Hui Zhu'" <teawater at gmail dot com>
- Date: Tue, 22 Dec 2009 14:48:19 +0300
- Subject: Re: GDB MI Reverse Commands added [1 of 3]
- References: <00ce01ca265a$ccb66ca0$662345e0$@com> <200912211305.55412.vladimir@codesourcery.com> <00af01ca82fa$a8b74b60$fa25e220$@com>
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