From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12968 invoked by alias); 15 Jan 2008 03:37:49 -0000 Received: (qmail 12958 invoked by uid 22791); 15 Jan 2008 03:37:49 -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, 15 Jan 2008 03:37:22 +0000 Received: from kahikatea.snap.net.nz (111.60.255.123.dynamic.snap.net.nz [123.255.60.111]) by viper.snap.net.nz (Postfix) with ESMTP id D08A23DA701; Tue, 15 Jan 2008 16:37:18 +1300 (NZDT) Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id 206F28FC6D; Tue, 15 Jan 2008 16:37:13 +1300 (NZDT) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18316.10856.89097.335103@kahikatea.snap.net.nz> Date: Tue, 15 Jan 2008 03:37:00 -0000 To: dodji@seketeli.org, gdb@sourceware.org Subject: Re: bug in mi when setting breakpoint In-Reply-To: <18277.36237.521792.245470@kahikatea.snap.net.nz> References: <20071216125625.GE4783@coin> <18277.36237.521792.245470@kahikatea.snap.net.nz> X-Mailer: VM 7.19 under Emacs 23.0.50.29 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-01/txt/msg00104.txt.bz2 > Unfortunately CLI also uses sub-prompts for several other commands: queries > e.g pending breakpoints, exiting after exevution has started; the "commands" > command. I don't think that they fit well with the MI paradigm: MI expects > MI output. With queries, GDB takes affirmative action, e.g., creates > pending breakpoints regardless of the value of "show breakpoint pending" and > exits regardless of the value of "show confirm". > > Perhaps, for now, GDB could do something similar, i.e., set all the > breakpoints in the breakpoint menu. I see now that this is what Apple do: if (i1 > 0) { int accept_all; if (ui_out_is_mi_like_p (uiout)) accept_all = 1; else accept_all = 0; /* There is more than one field with that name (overloaded). Ask the user which one to use. */ return decode_line_2 (sym_arr, i1, i1, funfirstline, accept_all, canonical); } How about doing something similar in FSF GDB? -- Nick http://www.inet.net.nz/~nickrob