Debugging with GDB
24.2 GDB/MI Compatibility with CLI
To help users familiar with GDB's existing CLI interface, GDB/MI
accepts existing CLI commands. As specified by the syntax, such
commands can be directly entered into the GDB/MI interface and GDB will
respond.
This mechanism is provided as an aid to developers of GDB/MI
clients and not as a reliable interface into the CLI. Since the command
is being interpreteted in an environment that assumes GDB/MI
behaviour, the exact output of such commands is likely to end up being
an un-supported hybrid of GDB/MI and CLI output.