GDB with options -i=mi & --nw doesn't enable mi

Andrew Cagney ac131313@redhat.com
Thu Oct 30 19:10:00 GMT 2003


> Hi,
> 
> If I start gdb like this
> 
> gdb --i=mi --nw ./inferior_prog,

Just "gdb -i=mi" is sufficient.  From the source code:

             /* -nw is equivalent to -i=console.  */

so the above is equivalent to:

	-i=mi -i=console

> then the mi interpreter doesn't start.

> This makes things difficult in the Cygwin environment for me, where the
> Insight GUI comes up by default. Is this a bug? and/or is there a nice work
> around?

 From 5.3 on, Insight was made a separate program and the querk of "gdb" 
sometimes starting "insight" was eliminated.  If you want to be robust 
against an old old gdb, try:

	-nw -i=mi

> I am using GDB 6.0 on Linux 2.4.18 (debian).

Andrew




More information about the Gdb mailing list