Re: starting gdb/mi from FE

Daniel Jacobowitz
2006-06-05T21:25:38Z

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