This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: MI return error changed from 6.3 to 6.4?
- From: Nick Roberts <nickrob at snap dot net dot nz>
- To: Daniel Jacobowitz <drow at false dot org>
- Cc: Dirk Behme <dirk dot behme at googlemail dot com>, gdb at sourceware dot org
- Date: Sat, 8 Apr 2006 09:53:12 +1200
- Subject: Re: MI return error changed from 6.3 to 6.4?
- References: <44368B51.1030707@gmail.com> <20060407160222.GA24731@nevyn.them.org>
> 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