This is the mail archive of the
mailing list for the GDB project.
Re: MI varobj properties
- From: Jim Ingham <jingham at apple dot com>
- To: Vladimir Prus <vladimir at codesourcery dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Wed, 15 Nov 2006 09:41:51 -0800
- Subject: Re: MI varobj properties
- References: <email@example.com>
I did -var-info-path-expression lazily, since these can be pretty long
strings, and most of the time they aren't used. So hanging one off
each varobj when it's not needed seems wasteful.
On Nov 15, 2006, at 8:42 AM, Vladimir Prus wrote:
It looks like MI has grown way to many ways to report properties of
- When a variable object is created, the gdb response reports some
properties (like expression and the number of children).
- There's -var-info-expression that returns the expression
the same as above) and also language.
- There's -var-show-attributes that returns "editable"
- Apple branch has -var-info-path-expression that returns full
This is somewhat complicated, and there are no clear rationale how
do get any
new bit of information.
Except for getting the value of a variable objects, all those
computed by gdb, and there are no complex algorithms. How about the
- The commands that create new variable object always return
list of properties.
- There's a new command that also returns the full list of
- For backward compatibility, existing commands just forward
to the new command.