Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Nick Roberts <nickrob@snap.net.nz>
To: Daniel Jacobowitz <drow@false.org>
Cc: Srrr <ibx@gmx.net>, gdb@sourceware.org
Subject: Re: BUG: MI reporting wrong attributes for casted variables
Date: Thu, 21 Jun 2007 21:31:00 -0000	[thread overview]
Message-ID: <18042.60967.652281.816747@kahikatea.snap.net.nz> (raw)
In-Reply-To: <20070621202555.GA30881@caradoc.them.org>

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
                             ^^^^^^^^
  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.

Incidentally, I find it strange that GDB can assign values to constant types:


const i21 = 5;


-var-create - * i21
^done,name="var1",numchild="0",value="5",type="const int"
(gdb) 
-var-assign var1 9
^done,value="9"
(gdb)

-- 
Nick                                           http://www.inet.net.nz/~nickrob


  reply	other threads:[~2007-06-21 21:31 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 [this message]
2007-06-22  4:57       ` Vladimir Prus
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=18042.60967.652281.816747@kahikatea.snap.net.nz \
    --to=nickrob@snap.net.nz \
    --cc=drow@false.org \
    --cc=gdb@sourceware.org \
    --cc=ibx@gmx.net \
    /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