]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
PR python/14386:
authorTom Tromey <tromey@redhat.com>
Mon, 6 Aug 2012 18:44:45 +0000 (18:44 +0000)
committerTom Tromey <tromey@redhat.com>
Mon, 6 Aug 2012 18:44:45 +0000 (18:44 +0000)
commit2c12abee48e5615dd8573bbafd1b8a167967147d
treebbe7be1714a31fc407cca93a305631fcd3aec785
parent4979d7f0a6644db8a512fdf29a6a9df8d258969c
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.
gdb/ChangeLog
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.python/py-mi.exp
gdb/testsuite/gdb.python/py-prettyprint.c
gdb/testsuite/gdb.python/py-prettyprint.py
gdb/varobj.c