From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11819 invoked by alias); 6 Jul 2005 21:26:41 -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 11784 invoked by uid 22791); 6 Jul 2005 21:26:36 -0000 Received: from viper.snap.net.nz (HELO viper.snap.net.nz) (202.37.101.8) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 06 Jul 2005 21:26:36 +0000 Received: from farnswood.snap.net.nz (p130-tnt2.snap.net.nz [202.124.108.130]) by viper.snap.net.nz (Postfix) with ESMTP id 9F5CE5E4A72; Thu, 7 Jul 2005 09:26:33 +1200 (NZST) Received: by farnswood.snap.net.nz (Postfix, from userid 501) id 4B7A362A99; Wed, 6 Jul 2005 22:26:43 +0100 (BST) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17100.19602.527071.624058@farnswood.snap.net.nz> Date: Wed, 06 Jul 2005 21:26:00 -0000 To: Karganov Konstantin Cc: Daniel Jacobowitz , gdb@sources.redhat.com Subject: Re: MI usage inside a user-defined commands In-Reply-To: References: <20050706131413.GA24446@nevyn.them.org> X-SW-Source: 2005-07/txt/msg00046.txt.bz2 > 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) The user should be asked: Make breakpoint pending on future shared library load? (y or [n]) Nick