MI return error changed from 6.3 to 6.4?
Nick Roberts
nickrob@snap.net.nz
Sat Apr 8 08:23:00 GMT 2006
> mi_cmd_interpreter_exec has conveniently returned MI_CMD_ERROR.
> So, this should be easy to fix. Thanks for the report.
However the manual says:
Manual> To help users familiar with GDB's existing CLI interface, GDB/MI
Manual> accepts existing CLI commands. As specified by the syntax, such
Manual> commands can be directly entered into the GDB/MI interface and GDB will
Manual> respond.
Manual> This mechanism is provided as an aid to developers of GDB/MI clients
Manual> and not as a reliable interface into the CLI. Since the command is
Manual> being interpreteted in an environment that assumes GDB/MI behaviour,
Manual> the exact output of such commands is likely to end up being an
Manual> un-supported hybrid of GDB/MI and CLI output.
so maybe we shouldn't fix it.
On the other hand this was written before the command -interpreter-exec. If
entering CLI commands directly (using -interpreter-exec implicitly) can be
made as reliable as using -interpreter-exec explicitly, maybe this would be a
convenient alternative, and the above paragraph could be removed from the
manual.
--
Nick http://www.inet.net.nz/~nickrob
More information about the Gdb
mailing list