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.
This commit is contained in:
Doug Evans 2015-04-28 21:53:54 -07:00
parent 5e7cf0784c
commit 69b4374a87
8 changed files with 228 additions and 0 deletions

View file

@ -527,6 +527,7 @@ extern const struct language_defn *python_language;
} \
} while (0)
int gdbpy_print_python_errors_p (void);
void gdbpy_print_stack (void);
PyObject *python_string_to_unicode (PyObject *obj);