2007-02-13 Denis Pilat <denis.pilat@st.com>
authorDenis Pilat <denis.pilat@st.com>
Tue, 13 Feb 2007 08:15:49 +0000 (08:15 +0000)
committerDenis Pilat <denis.pilat@st.com>
Tue, 13 Feb 2007 08:15:49 +0000 (08:15 +0000)
commit8756216bc74d2a014779aaebf3cbb6f220cc4583
tree3d8f139c33a1ab5110aac49188048e58f9963c00
parentb1e374737bca6da4311e2be8b0cc9133599dfad1
2007-02-13  Denis Pilat  <denis.pilat@st.com>

* varobj.h (enum varobj_update_error): New enum.
* varobj.c (struct varobj_root): Add is_valid member.
(varobj_get_type): Check for invalid varobj.
(varobj_get_attributes): Likewise.
(variable_editable):Likewise.
(varobj_update): Likewise.  Use varobj_update_error.
(new_root_variable): Set root varobj as valid by default.
(varobj_invalidate): New function.
* symfile.c (clear_symtab_users): Use varobj_invalidate.
* mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
Use varobj_update_error.
gdb/ChangeLog
gdb/mi/mi-cmd-var.c
gdb/symfile.c
gdb/varobj.c
gdb/varobj.h