From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 648 invoked by alias); 6 Jun 2006 01:20:10 -0000 Received: (qmail 640 invoked by uid 22791); 6 Jun 2006 01:20:09 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Tue, 06 Jun 2006 01:20:08 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1FnQEk-0002G0-1C; Mon, 05 Jun 2006 21:20:02 -0400 Date: Tue, 06 Jun 2006 01:20:00 -0000 From: Daniel Jacobowitz To: Nick Roberts Cc: Bob Rossi , gdb-patches@sources.redhat.com Subject: Re: starting gdb/mi from FE Message-ID: <20060606012001.GA7954@nevyn.them.org> Mail-Followup-To: Nick Roberts , Bob Rossi , gdb-patches@sources.redhat.com References: <17540.53854.931145.771214@kahikatea.snap.net.nz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <17540.53854.931145.771214@kahikatea.snap.net.nz> User-Agent: Mutt/1.5.11+cvs20060403 X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-06/txt/msg00053.txt.bz2 On Tue, Jun 06, 2006 at 12:54:54PM +1200, Nick Roberts wrote: > I can't remember the previous outcome (I got lost with all the handshakes) but > I would prefer an MI command, -mi-version say, that the FE could use. It > could have a major and minor part: the major number to refer to the default MI > level; and the minor to help identify small changes made within one level. Of > course, we'd have to remember to update it, when appropriate. > > Pre GDB 6.5 wouldn't really work in this case either, but > > (gdb) > -mi-version > ^error,msg="Undefined MI command: mi-version" > (gdb) > > wouldn't require restarting GDB, while: > > nickrob/21 gdb -i=mi2,mi1 myprog > Interpreter `mi2,mi1' unrecognized > nickrob/22 > > would. Two items. Nick, could you explain why the restart is a problem? The time GDB takes to reject an interpreter doesn't seem too bad. I don't want to optimize the wrong thing. Bob, since we last discussed this the interpreter commands have matured a bit. There's even tab completion for the CLI interpreter-exec command; try "interpreter-exec " and you'll get a list. Would -interpreter-list and -interpreter-set do it for you? I thought there already was a "set interp", but it seems I was mistaken. -- Daniel Jacobowitz CodeSourcery