This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] MI Doco


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 <drow@false.org>
> > Cc: Nick Roberts <nickrob@snap.net.nz>, 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]