Re: MI: type prefixes for values

Daniel Jacobowitz
2006-02-21T14:15:42Z

On Tue, Feb 21, 2006 at 09:54:43AM +0300, Vladimir Prus wrote:
> On Monday 20 February 2006 23:57, Daniel Jacobowitz wrote:
> > On Mon, Feb 20, 2006 at 10:55:44PM +0200, Eli Zaretskii wrote:
> > > > From: Vladimir Prus <ghost@cs.msu.su>
> > > > Date: Mon, 20 Feb 2006 10:23:04 +0300
> > > > Cc: Eli Zaretskii <eliz@gnu.org>,
> > > > gdb@sources.redhat.com
> > > >
> > > > To make an even more specific question, I propose to:
> > > >
> > > > - Remove type prefix from output of -data-evaluate-expression and
> > > > -var-evaluat-expression
> > > >
> > > > - Add 'type' field to the output of -data-evaluate-expression
> > > >
> > > >
> > > > Is this OK with everyone?
> > >
> > > I think a better suggestion surfaced in this discussion: don't try to
> > > parse the output of -data-evaluate-expression, and use -var-create
> > > instead. Is that good enough? If not, why not?
> >
> > Yes; I think (and Jim's experience seems to confirm) that
> > -var-evaluate-expression is sufficiently cheap that if you need
> > more than a simple string output, you should use it.
>
> But output of -var-evaluate-expression includes that "type prefix" too!

Yes, I believe we all agreed that it could be removed.

--
Daniel Jacobowitz
CodeSourcery