Re: starting gdb/mi from FE

Bob Rossi
2006-06-05T21:28:53Z

On Mon, Jun 05, 2006 at 05:25:32PM -0400, Daniel Jacobowitz wrote:
> 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.

I agree with you, which is obviously why I wrote it that way. I'm
completely ignorant to GNU standards though. Most of what I know I've
learned here from you kind people.

Bob Rossi