Re: CLI commands in MI

Nick Roberts
2006-05-11T11:14:53Z

> > Now, if we look at the command set someday (around mi4 maybe), and find
> > that it's become complete, then perhaps we can disable the CLI hack.
>
> How about if the front-end wants to provide a debugger console, so
> that the user can also enter commands manually? I would have hoped
> that we could still allow the user to use CLI commands in that console,
> because MI commands output are somewhat difficult to read for a normal
> human.

Thats what "-interpreter-exec console" is for. Bob is suggesting removing the
option of sending CLI commands directly to MI (which actually works pretty much
the same way now).

> Basically, the front-end would take the user command in CLI format,
> send it to the MI interpreter via this feature, and then get the
> output back, extract it from the MI output, and then display it
> on the console.
>
> Is there another way of doing this?

It switches the interpreter, executes the command, then switches back.
Don't ask me for the details though!

--
Nick http://www.inet.net.nz/~nickrob