Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* BUG: MI reporting wrong attributes for casted variables
@ 2007-06-21 17:12 Srrr
  2007-06-21 20:17 ` Nick Roberts
  0 siblings, 1 reply; 8+ messages in thread
From: Srrr @ 2007-06-21 17:12 UTC (permalink / raw)
  To: gdb

Assume a variable like

unsigned int myValue;

It is possible to create a casted MI variable like

1096-var-create - * (int)myValue
1096^done,name="var4",numchild="0",value="0",type="int"

GDB reports this to be an editable variable:

1097-var-show-attributes var4
1097^done,attr="editable"

But in fact, it is not. GDB does not allow assiging values to casted
variables. So GDB should not report this to be editable.

1100-var-assign var4 1
1100^error,msg="mi_cmd_var_assign: Could not assign expression to varible
object"

This bug is causing trouble in Eclipse CDT because casted vars show up as
editable when they are not.

GDB Snapshot from around 26.5.2007.

Sascha


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-06-22 10:51 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-21 17:12 BUG: MI reporting wrong attributes for casted variables 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
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox