From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12239 invoked by alias); 30 Oct 2003 19:10:27 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 12230 invoked from network); 30 Oct 2003 19:10:26 -0000 Received: from unknown (HELO localhost.redhat.com) (207.219.125.105) by sources.redhat.com with SMTP; 30 Oct 2003 19:10:26 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 5F59D2B89; Thu, 30 Oct 2003 14:10:24 -0500 (EST) Message-ID: <3FA16220.1080906@redhat.com> Date: Thu, 30 Oct 2003 19:10:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030820 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Bob Rossi Cc: gdb@sources.redhat.com Subject: Re: GDB with options -i=mi & --nw doesn't enable mi References: <20031030031516.GA5159@white> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-10/txt/msg00334.txt.bz2 > 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