Use 'struct varobj_item' to represent name and value pair
authorYao Qi <yao@codesourcery.com>
Tue, 10 Sep 2013 00:58:23 +0000 (08:58 +0800)
committerYao Qi <yao@codesourcery.com>
Thu, 12 Jun 2014 07:27:09 +0000 (15:27 +0800)
commit5a2e0d6e89f69f0c3d013cf43f3bd3d97b5e628b
treed46ef80b8bebe70443c8fe61b1999fddb0033e4f
parentc151b1c645a87136b61d9c16741b40f59694ed02
Use 'struct varobj_item' to represent name and value pair

Hi,
name and value pair is widely used in varobj.c.  This patch is to add
a new struct varobj_item to represent them, so that the number of
function arguments can be reduced.  Finally, the iteration is done on
'struct varobj_item' instead of PyObject after this patch series.

 V2:
 - Fix changelog entry.
 - Fix one grammatical mistake.

gdb:

2014-06-12  Yao Qi  <yao@codesourcery.com>

* varobj.c (struct varobj_item): New structure.
(create_child_with_value): Update declaration.
(varobj_add_child): Replace arguments 'name' and 'value' with
'item'.  All callers updated.
(install_dynamic_child): Likewise.
(update_dynamic_varobj_children): Likewise.
(varobj_add_child): Likewise.
(create_child_with_value): Likewise.
gdb/ChangeLog
gdb/varobj.c