Cleanup varobj children handling

Vladimir Prus ghost@cs.msu.su
Fri Dec 8 20:00:00 GMT 2006


This patch changes varobj.c to use VEC for hodling children, thereby making three
functions unnecessary. No regressions in MI tests. OK?

- Volodya

	gdb/
	* varobj.c: Include "vec.h". 
	(varobj_p): New typedef, declare vector of those.
	(struct varobj): Use vector for the 'children' member.
	(child_exists): Remove.
	(save_child_in_parent): Remove.
	(remove_child_from_parent): Remove.
	(varobj_list_children): Adjust to work work vector.
	(varobj_update): Likewise.
	(delete_variable_1): Likewise.
	* Makefile.in (varobj.o): Update dependencies.

	testsuite/
	* gdb.mi/mi-var-child.exp: Adjust to the change in order
	of varobjs reported by -var-update.
	* gdb.mi/mi2-var-child.exp: Likewise.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: path_2_children__gdb_mainline.diff
Type: text/x-diff
Size: 11557 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20061208/6ff52392/attachment.bin>


More information about the Gdb-patches mailing list