PR python/18089
authorDoug Evans <dje@google.com>
Wed, 29 Apr 2015 04:53:54 +0000 (21:53 -0700)
committerDoug Evans <dje@google.com>
Wed, 29 Apr 2015 04:53:54 +0000 (21:53 -0700)
commit69b4374a87e5029ac4831c7a4471815514df662f
tree9041be61ebe1e1bd8df326650dd946102f15ae77
parent5e7cf0784c9b543b1870b974a78244c40105c523
PR python/18089

gdb/ChangeLog:

PR python/18089
* python/py-prettyprint.c (print_children): Verify result of children
iterator.  Provide better error message.
* python/python-internal..h (gdbpy_print_python_errors_p): Declare.
* python/python.c (gdbpy_print_python_errors_p): New function.

gdb/testsuite/ChangeLog:

* gdb.python/py-bad-printers.c: New file.
* gdb.python/py-bad-printers.py: New file.
* gdb.python/py-bad-printers.exp: New file.
gdb/ChangeLog
gdb/python/py-prettyprint.c
gdb/python/python-internal.h
gdb/python/python.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.python/py-bad-printers.c [new file with mode: 0644]
gdb/testsuite/gdb.python/py-bad-printers.exp [new file with mode: 0644]
gdb/testsuite/gdb.python/py-bad-printers.py [new file with mode: 0644]