From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21573 invoked by alias); 9 Jun 2006 19:57:48 -0000 Received: (qmail 21562 invoked by uid 22791); 9 Jun 2006 19:57:47 -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; Fri, 09 Jun 2006 19:57:45 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1Fon71-00021Y-B2 for gdb-patches@sourceware.org; Fri, 09 Jun 2006 15:57:43 -0400 Date: Fri, 09 Jun 2006 19:57:00 -0000 From: Daniel Jacobowitz To: gdb-patches@sourceware.org Subject: Re: [PATCH] MI Doco Message-ID: <20060609195743.GA7720@nevyn.them.org> Mail-Followup-To: gdb-patches@sourceware.org References: <17535.33986.598009.914783@kahikatea.snap.net.nz> <17536.4472.263731.425097@kahikatea.snap.net.nz> <17538.8607.697546.427486@kahikatea.snap.net.nz> <20060609191134.GB5616@nevyn.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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/msg00110.txt.bz2 On Fri, Jun 09, 2006 at 10:51:30PM +0300, Eli Zaretskii wrote: > > Date: Fri, 9 Jun 2006 15:11:34 -0400 > > From: Daniel Jacobowitz > > Cc: Nick Roberts , gdb-patches@sources.redhat.com > > > > On Fri, Jun 09, 2006 at 10:06:34PM +0300, Eli Zaretskii wrote: > > > > + @smallexample > > > > + -> -break-insert main > > > > + <- ^done,bkpt=@{number="1",type="breakpoint",disp="keep", > > > > + enabled="y",addr="0x08048564",func="main",file="myprog.c", > > > > + fullname="/home/nickrob/myprog.c",line="68",times="0"@} > > > > + <- (gdb) > > > > > > Please use "(@value{GDBP})" instead of a literal "(gdb)". > > > > In this context, that's incorrect. This is actually a literal > > "(gdb)\n", rather than the result of "show prompt"; MI uses a hardcoded > > prompt string. > > Are you saying that all the MI examples that use @value{GDBP} are > incorrect? Yes, I'm afraid so. > Also, isn't it a bug in MI that it uses a hardcoded string? Nope. The prompt is part of the formal grammar; the grammar changing when the user used "set prompt" would be confusing to front ends. You can have both the CLI and MI live at once, so you want to change the CLI's prompt, but leave MI's alone. -- Daniel Jacobowitz CodeSourcery