This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: GDB/MI questions
On Thu, Jan 19, 2017 at 02:30:58PM +0000, Marc Khouzam wrote:
> > Second, from the CLI if you run the command "next", then if you hit
> > the enter key, GDB will run the "next" command again.
> > However, in GDB/MI if you run -interpreter-exec console "next", and then
> > follow that with the Enter key, GDB does nothing.
> > Is there a way to run the last command?
...
> But if you really want that for some reason, you can just keep track
> of the last command you sent in MI, and then when getting an lone
> Enter, you could send it again. But then you don't have the smarts
> of GDB to know which commands should repeat and which should not.
> I don't think this is a very good idea.
I'm just trying to provide the same functionality I did when I was using
annotations. This was one of the noted differences.
Since the MI differs in this area, I've done as you suggested and
that works well. I guess I'll see if there are any downsides here.
Thanks,
Bob Rossi