This is the mail archive of the gdb@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: MI: type prefixes for values


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.

-- 
Daniel Jacobowitz
CodeSourcery


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