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:
parent
5e7cf0784c
commit
69b4374a87
8 changed files with 228 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue