From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1641 invoked by alias); 30 May 2006 17:53:36 -0000 Received: (qmail 1630 invoked by uid 22791); 30 May 2006 17:53:36 -0000 X-Spam-Check-By: sourceware.org Received: from eastrmmtao01.cox.net (HELO eastrmmtao01.cox.net) (68.230.240.38) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 30 May 2006 17:53:35 +0000 Received: from localhost.localdomain ([68.9.66.48]) by eastrmmtao01.cox.net (InterMail vM.6.01.06.01 201-2131-130-101-20060113) with ESMTP id <20060530175310.WXOJ17255.eastrmmtao01.cox.net@localhost.localdomain>; Tue, 30 May 2006 13:53:10 -0400 Received: from bob by localhost.localdomain with local (Exim 4.52) id 1Fl8P0-00064B-Gn; Tue, 30 May 2006 13:53:10 -0400 Date: Tue, 30 May 2006 17:55:00 -0000 From: Bob Rossi To: Jim Ingham Cc: gdb@sources.redhat.com Subject: Re: MI query questions Message-ID: <20060530175310.GD31100@brasko.net> Mail-Followup-To: Jim Ingham , gdb@sources.redhat.com References: <20060529122337.GB2021@brasko.net> <20060529144640.GA12145@nevyn.them.org> <20060530171518.GB31100@brasko.net> <7A4B9D88-47FB-4721-949F-632AF2E449FC@apple.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.9i 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/msg00395.txt.bz2 On Tue, May 30, 2006 at 10:48:53AM -0700, Jim Ingham wrote: > Actually, to avoid confusion, this really looks like: > > (gdb) set interpreter mi1 > -interpreter-exec console-quoted "break raise" > ~"[0] cancel\n[1] all\n" > ~"\nNon-debugging symbols:\n" > ~"[2] -[NSException raise]\n" > ~"[3] raise\n" > =read-one-line,prompt="> " > > In our version of gdb the console interpreter really is the straight > CLI console interpreter - this is required to get the "set > interpreter" command to work. So we had to invent another > interpreter that did the proper quoting. Anyway, this is what it > would look like for you... This is also the solution I was thinking of. However, I would like to modify the MI OUTPUT record to show this as a possibility. Also, I think that this should be 1 full response. (gdb) set interpreter mi1 -interpreter-exec console-quoted "break raise" ~"[0] cancel\n[1] all\n" ~"\nNon-debugging symbols:\n" ~"[2] -[NSException raise]\n" ~"[3] raise\n" =read-one-line,prompt="> " (gdb) And then the user will send the command, and then get another full response representing the breakpoint output. Does this make sense? This would mean that there would be a new part of the MI output record that would tell the FE that it needs to ask the user for more information. Most FE's that have used annotate 1 or 2 have already come across this situation and dealt with it nicely. Thanks, Bob Rossi