old-cross-binutils/gdb/python
Yao Qi 827f100cee Iterate over 'struct varobj_item' instead of PyObject
In previous patch, "saved_item" is still a PyOjbect and iteration is
still performed over PyObject.  This patch continues to decouple
iteration from python code, so it changes its type to "struct
varobj_item *", so that the iterator itself is independent of python.

 V2:
 - Call varobj_delete_iter in free_variable.
 - Fix changelog entries.
 - Use XNEW.

 V3:
 - Return NULL early in py_varobj_iter_next if gdb_python_initialized
   is false.

gdb:

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

	* python/py-varobj.c (py_varobj_iter_next): Return NULL if
	gdb_python_initialized is false.  Move some code from varobj.c.
	* varobj-iter.h (struct varobj_item): Moved from varobj.c.
	* varobj.c: Move "varobj-iter.h" inclusion earlier.
	(struct varobj_item): Moved to varobj-iter.h".
	(varobj_clear_saved_item): New function.
	(update_dynamic_varobj_children): Move python-related code to
	py-varobj.c.
	(free_variable): Call varobj_clear_saved_item and
	varobj_iter_delete.
2014-06-12 15:27:19 +08:00
..
lib/gdb Xmethod support in Python. 2014-06-03 10:03:07 -07:00
py-arch.c
py-auto-load.c
py-block.c
py-bpevent.c
py-breakpoint.c
py-cmd.c
py-continueevent.c
py-event.c
py-event.h
py-events.h
py-evtregistry.c
py-evts.c
py-exitedevent.c
py-finishbreakpoint.c
py-frame.c Rename frame_stop_reason_string to unwind_stop_reason_to_string. 2014-05-30 22:40:29 +01:00
py-framefilter.c
py-function.c
py-gdb-readline.c
py-inferior.c
py-infthread.c
py-lazy-string.c
py-linetable.c
py-newobjfileevent.c
py-objfile.c Xmethod support in Python. 2014-06-03 10:03:07 -07:00
py-param.c
py-prettyprint.c
py-progspace.c Xmethod support in Python. 2014-06-03 10:03:07 -07:00
py-signalevent.c
py-stopevent.c
py-stopevent.h
py-symbol.c
py-symtab.c
py-threadevent.c Add new infrun.h header. 2014-05-22 12:29:11 +01:00
py-type.c
py-utils.c
py-value.c Wrap PyObject_Get/HasAttrString in a function with second arg having const qualifier. 2014-06-10 11:52:12 -07:00
py-varobj.c Iterate over 'struct varobj_item' instead of PyObject 2014-06-12 15:27:19 +08:00
py-xmethods.c Xmethod support in Python. 2014-06-03 10:03:07 -07:00
python-config.py
python-internal.h Generalize varobj iterator 2014-06-12 15:27:15 +08:00
python.c Xmethod support in Python. 2014-06-03 10:03:07 -07:00
python.h