Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Vladimir Prus <ghost@cs.msu.su>
To: gdb@sources.redhat.com
Subject: Re: MI: variable objects: children naming
Date: Mon, 20 Mar 2006 23:11:00 -0000	[thread overview]
Message-ID: <dvlikq$ufu$1@sea.gmane.org> (raw)
In-Reply-To: <20060317170701.GA15128@nevyn.them.org>

Daniel Jacobowitz wrote:

>> However, the information gdb prints does not allow me to compute m[0]:
> 
> Is this the only thing you need the name for, or is it useful for other
> purposes in the user interface too?  (Honest question - I have no
> idea.)
> 

Yes, there are other purposes. Say, if you right-click an item in variables
tree and select, in the popup menu, the "Remember" command, the current
value of the item will be shown in a separate area for future reference.
But we need to show the full name of the item there. It's only for user, and
we need full name there.

> If watchpoints are the only reason, then you could have a variant of a
> watchpoint command which took a varobj.
> 
>>   - Calling '-var-info-expression TMP.0' returns:
>>         ^done,lang="C++",exp="0"
>> 
>> It seems like Apple version has new command -var-info-path-expression,
>> which is not present in FSF version, and which supposedly will produce
>> "m[0]".
> 
> We'd have to ask Jim for the history, but why should we do this instead
> of fixing -var-info-expression?  That behavior looks pretty wrong!

Jim has explained this -- 'info-expression' is local name of an item
relative to the parent, while 'info-path-expression' is full name.

- Volodya


      parent reply	other threads:[~2006-03-20  6:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-17 14:56 Vladimir Prus
2006-03-17 17:23 ` Daniel Jacobowitz
2006-03-17 19:42   ` Jim Ingham
2006-03-20 23:11   ` Vladimir Prus [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='dvlikq$ufu$1@sea.gmane.org' \
    --to=ghost@cs.msu.su \
    --cc=gdb@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox