OSDN Git Service

2006-11-28 Vladimir Prus <vladimir@codesourcery.com>
authorVladimir Prus <vladimir@codesourcery.com>
Tue, 28 Nov 2006 17:23:10 +0000 (17:23 +0000)
committerVladimir Prus <vladimir@codesourcery.com>
Tue, 28 Nov 2006 17:23:10 +0000 (17:23 +0000)
commit0b0754d765b0c435be62198368e35e3af2b9bc62
tree4dd008acc05a93b50cc4824c099ebadb63626a1e
parent24b4699967f21b546768f623969204f2d18d0419
2006-11-28  Vladimir Prus  <vladimir@codesourcery.com>

        Fetch varobj values from memory in a single place,
        and only fetch the values that are really needed.
        * varobj.c (struct varobj): Clarify comment.
        (my_value_equal): Remove.
        (install_new_value): New function.
        (type_of_child): Remove.
        (varobj_create): Use install_new_value.
        (varobj_set_value): Use value_contents_equal, not
        my_value_equal.
        (varobj_update): Use install_new_value.
        (create_child): Likewise. Inline type_of_child here.
        (value_of_child): Don't fetch the value.
        (c_value_of_root): Likewise.
        (c_value_of_variable): Likewise.
        (type_changeable): Improve comments.
gdb/ChangeLog
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.mi/mi-var-cmd.exp
gdb/testsuite/gdb.mi/var-cmd.c
gdb/varobj.c