From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22724 invoked by alias); 6 Jul 2005 21:41:45 -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 22715 invoked by uid 22791); 6 Jul 2005 21:41:41 -0000 Received: from lakermmtao07.cox.net (HELO lakermmtao07.cox.net) (68.230.240.32) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 06 Jul 2005 21:41:41 +0000 Received: from white ([68.9.64.121]) by lakermmtao07.cox.net (InterMail vM.6.01.04.00 201-2131-118-20041027) with ESMTP id <20050706214139.ICAV28809.lakermmtao07.cox.net@white>; Wed, 6 Jul 2005 17:41:39 -0400 Received: from bob by white with local (Exim 3.35 #1 (Debian)) id 1DqHeF-0004uE-00; Wed, 06 Jul 2005 17:41:39 -0400 Date: Wed, 06 Jul 2005 21:41:00 -0000 From: Bob Rossi To: Nick Roberts Cc: Karganov Konstantin , Daniel Jacobowitz , gdb@sources.redhat.com Subject: Re: MI usage inside a user-defined commands Message-ID: <20050706214139.GB18392@white> Mail-Followup-To: Nick Roberts , Karganov Konstantin , Daniel Jacobowitz , gdb@sources.redhat.com References: <20050706131413.GA24446@nevyn.them.org> <17100.19602.527071.624058@farnswood.snap.net.nz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <17100.19602.527071.624058@farnswood.snap.net.nz> User-Agent: Mutt/1.3.28i X-SW-Source: 2005-07/txt/msg00051.txt.bz2 On Thu, Jul 07, 2005 at 09:26:42AM +1200, Nick Roberts wrote: > > > I mean the "define" feature itself works fine under MI (that is expected), > > but allows only CLI commands inside (that is not expected). From the first > > view it looks like broken CLI-compatibility... > > The manual says: > > A "user-defined command" is a sequence of GDB commands... > > GDB command implicitly means CLI command. I guess an equivalent MI command > could be implemented to execute a sequence of MI commands, but I'm not sure > that it would be needed. > > I don't know why you expect "define", a CLI command to accept a list of > MI commands. Likewise, "source filename" and breakpoint command lists will > only work with CLI commands. > > What does seem wrong is that MI no longer works properly with queries: > > (gdb) > -interpreter-exec console "b asdf" > &"Function \"asdf\" not defined.\n" > ~"Breakpoint 2 (asdf) pending.\n" > ^done > (gdb) I've noticed this. I was going to fix it if I had some time. It won't work when with overloaded function breakpoints either. Bob Rossi