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: BUG: MI reporting wrong attributes for casted variables
Date: Fri, 22 Jun 2007 04:57:00 -0000	[thread overview]
Message-ID: <f5fkrj$6nn$1@sea.gmane.org> (raw)
In-Reply-To: <18042.60967.652281.816747@kahikatea.snap.net.nz>

Nick Roberts wrote:

> Daniel Jacobowitz writes:
>  > On Fri, Jun 22, 2007 at 08:17:39AM +1200, Nick Roberts wrote:
>  > > Report it as a bug to the Eclipse CDT team.  They have misinterpreted
>  > > the meaning of the "editable" attribute.
>  > > 
>  > > This has been reported at leasted once before, possibly by you (or at
>  > > least another Sascha using Eclipse CDT) when I said:
>  > 
>  > And also by Vladimir, two years ago.  What is the use of the current
>  > "editable" attribute?  I don't see anything in the manual that would
>  > conflict with changing it.
> 
> Actually looking at the manual, rather than the code, it looks like this
> might have been the intended meaning:
> 
>   The `-var-assign' Command
>   -------------------------
> 
>   Synopsis
>   ........
> 
>         -var-assign NAME EXPRESSION
> 
>      Assigns the value of EXPRESSION to the variable object specified by
>   NAME.  The object must be `editable'.  If the variable's value is
>                              ^^^^^^^^

I agree that currently, 'editable' is not particularly useful, and if 'editable'
means '-var-assign most likely will succeeed', it would be better.

>   altered by the assign, the variable will show up in any subsequent
>   `-var-update' list.
> 
> So if you mean add this case to the existing ones, that seems reasonable.
> It would make redisplay faster if this field was added to the output
> of -var-create and -var-list-children.  This is probably especially 
> important for remote targets.

I'm not sure. Getting the 'editable' attribute does not require
talking to inferiour, so what target you use does not matter.

- Volodya



  reply	other threads:[~2007-06-22  4:57 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-21 17:12 Srrr
2007-06-21 20:17 ` Nick Roberts
2007-06-21 20:25   ` Daniel Jacobowitz
2007-06-21 21:31     ` Nick Roberts
2007-06-22  4:57       ` Vladimir Prus [this message]
2007-06-22  6:21       ` Sascha Radike
     [not found]   ` <000301c7b493$5ca88a50$02b2a8c0@insanenotebook>
2007-06-22  7:11     ` Nick Roberts
2007-06-22 10:51       ` Sascha Radike

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='f5fkrj$6nn$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