This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
RE: MI usage inside a user-defined commands
- From: Alain Magloire <alain at qnx dot com>
- To: Karganov Konstantin <kostik at ispras dot ru>, Daniel Jacobowitz <drow at false dot org>
- Cc: gdb at sources dot redhat dot com
- Date: Wed, 6 Jul 2005 10:02:27 -0400
- Subject: RE: MI usage inside a user-defined commands
>
>
> > The ability to use CLI syntax in MI mode is documented in the manual as
> > an unsupported, transitional feature.
> It is documented, that "MI accepts existing CLI commands" (section 24.4)
> and nothing is said about "unsupported" or "transitional" :)
>
> > it's not to be used by frontends.
> That is clear, since the output format will be the mess of CLI and MI
> output.
>
It is also practical, since not all MI Commands are implemented.
So if you want to do something with signals, the backend may not have a
Choice then to fallback to CLI.
Also note that mi2 has -interpreter-exec to allow the use of CLI.
The problem with that is the lost of synchronization state.