diff options
author | Phil Muldoon <pmuldoon@redhat.com> | 2010-04-14 12:02:46 +0000 |
---|---|---|
committer | Phil Muldoon <pmuldoon@redhat.com> | 2010-04-14 12:02:46 +0000 |
commit | 79f283fe85c2bc28eb97695c591e3c95423a32c8 (patch) | |
tree | 6c049ff109642b7f44397fd3977465e7193c02af /gdb/doc | |
parent | d594eacc9ee9f3135b25e86834ef271d68ed0bd2 (diff) | |
download | gdb-79f283fe85c2bc28eb97695c591e3c95423a32c8.zip gdb-79f283fe85c2bc28eb97695c591e3c95423a32c8.tar.gz gdb-79f283fe85c2bc28eb97695c591e3c95423a32c8.tar.bz2 |
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.
Diffstat (limited to 'gdb/doc')
-rw-r--r-- | gdb/doc/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/doc/gdb.texinfo | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index e914bf0..5a01076 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,8 @@ +2010-04-14 Phil Muldoon <pmuldoon@redhat.com> + + * gdb.texinfo (Pretty Printing): Document behaviour when to_string + returns None. + 2010-04-09 Stan Shebs <stan@codesourcery.com> * gdb.texinfo (gdb/mi Tracepoint Commands) <-trace-status>: diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 887547b..104a1ec 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -20435,6 +20435,9 @@ the resulting value. Again, this may result in a call to another pretty-printer. Python scalars (integers, floats, and booleans) and strings are convertible to @code{gdb.Value}; other types are not. +Finally, if this method returns @code{None} then no further operations +are peformed in this method and nothing is printed. + If the result is not one of these types, an exception is raised. @end defop |