2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
authorPhil Muldoon <pmuldoon@redhat.com>
Wed, 14 Apr 2010 12:02:46 +0000 (12:02 +0000)
committerPhil Muldoon <pmuldoon@redhat.com>
Wed, 14 Apr 2010 12:02:46 +0000 (12:02 +0000)
commit79f283fe85c2bc28eb97695c591e3c95423a32c8
tree6c049ff109642b7f44397fd3977465e7193c02af
parentd594eacc9ee9f3135b25e86834ef271d68ed0bd2
2010-04-14  Phil Muldoon  <pmuldoon@redhat.com>

PR python/11381

* python/py-prettyprint.c (pretty_print_one_value): Test for
Py_None.
(print_string_repr): Test for Py_None.  Set flags accordingly.
Return value depending on return type.
(print_children): Take a value indicating whether data was printed
before this function was called.  Alter output accordingly.
(apply_val_pretty_printer): Capture return value from
print_string_repr and pass to print_children.

2010-04-14  Phil Muldoon  <pmuldoon@redhat.com>

* gdb.python/py-prettyprint.py (NoStringContainerPrinter): New printer.
* gdb.python/py-prettyprint.c: Add justchildren struct, typedefs.
* gdb.python/py-prettyprint.exp: New test for to_string returning None.
* gdb.python/py-mi.exp: New test for to_string returning None.

2010-04-14  Phil Muldoon  <pmuldoon@redhat.com>

* gdb.texinfo (Pretty Printing): Document behaviour when to_string
returns None.
gdb/ChangeLog
gdb/doc/ChangeLog
gdb/doc/gdb.texinfo
gdb/python/py-prettyprint.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.python/py-mi.exp
gdb/testsuite/gdb.python/py-prettyprint.c
gdb/testsuite/gdb.python/py-prettyprint.exp
gdb/testsuite/gdb.python/py-prettyprint.py