This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: starting gdb/mi from FE
On Mon, Jun 05, 2006 at 10:56:30PM +0300, Eli Zaretskii wrote:
> > Date: Mon, 5 Jun 2006 09:45:17 -0400
> > From: Bob Rossi <bob_rossi@cox.net>
> >
> > $ ./gdb/gdb -q -i=mi4,mi3 ./main
>
> Multiple values separated by a comma is not how GNU programs accept
> multiple values for the same option. -i=mi4 -i=mi3 is more like it.
Is it? I couldn't find anything about this in e.g. the coding
standards.
I find -i=mi4,mi3 more intuitive here; I'd interpret -i=mi4 -i=mi3 as
either "use both" or "use the last one on the command line", but
-i=mi4,mi3 as either "use both" or "use the first one which works".
I think the "use the last one" behavior is fairly common; otherwise
there'd be no way to invoke a command specified as "gdb -i=mi2" in mi1
mode without sedding the user-specified command looking for -i options.
Of course I don't have a strong opinion on this. Just musing; feel
free to ignore.
--
Daniel Jacobowitz
CodeSourcery