This is the mail archive of the gdb@sources.redhat.com 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]

Re: variable objects (was: [rfc] Annotation level THREE)



If -var-assign is used (or, indeed, if the array element is changed within
execution) then the changelist reflects this e.g

-var-assign var2.3 6
^done,value="6"
(gdb) -var-update *
^done,changelist=[{name="var2.3",in_scope="true",type_changed="false"}]
(gdb)


-var-evaluate-expression gives the following:

-var-evaluate-expression var2
^done,value="[10]"
(gdb)


which possibly explains why nothing appears in the changelist when the CLI
command (set var r[3]=6) is used as the array size is not editable:

-var-show-attributes var2
^done,attr="noneditable"
(gdb)

Bug The CLI side is missing an invalidate. Can you please file this as a bug report. I'll then see about fixing it. If you want to turn the above into a test case, then you'll know it


This is only a problem when trying to control GDB using both CLI and MI
commands which is what we would like to do in Emacs. Do Apple (Project Builder?) or Eclipse have a console where CLI commands can be entered?

I suspect no one noticed because, up until now, things like Insight were using varobj to do updates (it is more robust than the `set' command).


Andrew



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