From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30922 invoked by alias); 30 May 2006 03:48:30 -0000 Received: (qmail 30910 invoked by uid 22791); 30 May 2006 03:48:29 -0000 X-Spam-Check-By: sourceware.org Received: from viper.snap.net.nz (HELO viper.snap.net.nz) (202.37.101.8) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 30 May 2006 03:48:27 +0000 Received: from kahikatea.snap.net.nz (p293-tnt1.snap.net.nz [202.124.111.39]) by viper.snap.net.nz (Postfix) with ESMTP id B20B27583ED; Tue, 30 May 2006 15:22:50 +1200 (NZST) Received: by kahikatea.snap.net.nz (Postfix, from userid 500) id BDA781D3550; Tue, 30 May 2006 15:22:13 +1200 (NZST) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17531.47715.244586.380765@kahikatea.snap.net.nz> Date: Tue, 30 May 2006 17:00:00 -0000 To: Bob Rossi Cc: gdb@sources.redhat.com Subject: MI query questions In-Reply-To: <20060529122337.GB2021@brasko.net> References: <20060529122337.GB2021@brasko.net> X-Mailer: VM 7.19 under Emacs 22.0.50.18 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-05/txt/msg00387.txt.bz2 > This is from MI interp: > (gdb) > -break-insert A::func > ~"[0] cancel\n[1] all\n" > ~"[2] A::func(float) at overloaded.cpp:8\n" > ~"[3] A::func(int) at overloaded.cpp:7\n" > > This isn't really a query in the GDB sense of the word i.e it's not a yes/no question and it doesn't call the function query. We've discussed queries in MI on this mailing list before and the current behaviour is to take a default value e.g "no" for pending breakpoints. I suggest, for the moment, at least, that we make MI select "[1] all" automatically in this case. -- Nick http://www.inet.net.nz/~nickrob