This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

BUG: MI reporting wrong attributes for casted variables


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]