aboutsummaryrefslogtreecommitdiff
path: root/gdb/varobj.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2012-08-06 18:44:45 +0000
committerTom Tromey <tromey@redhat.com>2012-08-06 18:44:45 +0000
commit2c12abee48e5615dd8573bbafd1b8a167967147d (patch)
treebbe7be1714a31fc407cca93a305631fcd3aec785 /gdb/varobj.c
parent4979d7f0a6644db8a512fdf29a6a9df8d258969c (diff)
downloadgdb-2c12abee48e5615dd8573bbafd1b8a167967147d.zip
gdb-2c12abee48e5615dd8573bbafd1b8a167967147d.tar.gz
gdb-2c12abee48e5615dd8573bbafd1b8a167967147d.tar.bz2
PR python/14386:
* varobj.c (update_dynamic_varobj_children): Don't call PyIter_Check. gdb/testsuite * gdb.python/py-mi.exp: Add test for printer whose children are a list. * gdb.python/py-prettyprint.c (struct children_as_list): New. (main): New variable children_as_list. * gdb.python/py-prettyprint.py (class pp_children_as_list): New. (register_pretty_printers): Register new printer.
Diffstat (limited to 'gdb/varobj.c')
-rw-r--r--gdb/varobj.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/gdb/varobj.c b/gdb/varobj.c
index c345c80..6699699 100644
--- a/gdb/varobj.c
+++ b/gdb/varobj.c
@@ -1114,9 +1114,6 @@ update_dynamic_varobj_children (struct varobj *var,
make_cleanup_py_decref (children);
- if (!PyIter_Check (children))
- error (_("Returned value is not iterable"));
-
Py_XDECREF (var->child_iter);
var->child_iter = PyObject_GetIter (children);
if (!var->child_iter)