From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16716 invoked by alias); 6 Jul 2005 13:50:13 -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 16698 invoked by uid 22791); 6 Jul 2005 13:50:06 -0000 Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 06 Jul 2005 13:50:06 +0000 Received: from drow by nevyn.them.org with local (Exim 4.51) id 1DqAHs-0006m1-Ub; Wed, 06 Jul 2005 09:50:05 -0400 Date: Wed, 06 Jul 2005 13:50:00 -0000 From: Daniel Jacobowitz To: Karganov Konstantin Cc: gdb@sources.redhat.com Subject: Re: MI usage inside a user-defined commands Message-ID: <20050706135004.GA25977@nevyn.them.org> Mail-Followup-To: Karganov Konstantin , gdb@sources.redhat.com References: <20050706131413.GA24446@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.8i X-SW-Source: 2005-07/txt/msg00039.txt.bz2 On Wed, Jul 06, 2005 at 05:32:22PM +0400, Karganov Konstantin wrote: > > > > It seems that user-defined commands are always parsed by console cmd-line > > > interpreter (no matter what interpreter was specified). > > > > Yes, that's correct. define is a feature of the CLI, not of core GDB. > > I think this is as designed. > > This looks a little bit strange - when I switch to MI I can use both MI > and CLI syntax but suddenly get a error with MI command ("hey! I've just > switched to MI mode! what's the..."). The ability to use CLI syntax in MI mode is documented in the manual as an unsupported, transitional feature. It's for your convenience when poking at MI by hand - it's not to be used by frontends. -- Daniel Jacobowitz CodeSourcery, LLC