From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7399 invoked by alias); 6 Jul 2005 23:06:23 -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 7337 invoked by uid 22791); 6 Jul 2005 23:06:13 -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 23:06:13 +0000 Received: from drow by nevyn.them.org with local (Exim 4.51) id 1DqIy3-0003F3-6z; Wed, 06 Jul 2005 19:06:11 -0400 Date: Wed, 06 Jul 2005 23:06:00 -0000 From: Daniel Jacobowitz To: Nick Roberts Cc: gdb@sources.redhat.com Subject: Re: Queries in MI [was Re: MI usage inside a user-defined commands] Message-ID: <20050706230611.GA12430@nevyn.them.org> Mail-Followup-To: Nick Roberts , gdb@sources.redhat.com References: <20050706131413.GA24446@nevyn.them.org> <17100.19602.527071.624058@farnswood.snap.net.nz> <20050706212845.GA9131@nevyn.them.org> <17100.24710.842746.668947@farnswood.snap.net.nz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <17100.24710.842746.668947@farnswood.snap.net.nz> User-Agent: Mutt/1.5.8i X-SW-Source: 2005-07/txt/msg00056.txt.bz2 On Thu, Jul 07, 2005 at 10:51:50AM +1200, Nick Roberts wrote: > > > The user should be asked: > > > > > > Make breakpoint pending on future shared library load? (y or [n]) > > > > Yes, that does seem like a bug - but how would you perform the query? > > On older versions of GDB (example slightly changed because -interpreter-exec > and pending breakpoints didn't exist): > > (gdb) > quit > &"quit\n" > ~"The program is running. Exit anyway? (y or n) " > n > &"Not confirmed.\n" > ^error,msg="Not confirmed." > (gdb) > > which worked as for CLI. However, presumably this operation is synchronous. > If MI becomes properly asynchronous then I'm not sure how to do it. Perhaps > the the frontend could prepend a token on the input, just as MI already uses > tokens for output. I don't know that the MI will ever become _that_ asynchronous - GDB is single threaded, after all. But, the above isn't particularly warmth-inducing either. Or documented, AFAICT. -- Daniel Jacobowitz CodeSourcery, LLC