This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]