From: Doug Evans Date: Mon, 23 May 2011 17:38:06 +0000 (+0000) Subject: * python/lib/gdb/printing.py (register_pretty_printer): Add missing X-Git-Tag: sid-snapshot-20110601~98 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6d64e6d477d324a1847268b7efcfa759f0257547;p=thirdparty%2Fbinutils-gdb.git * python/lib/gdb/printing.py (register_pretty_printer): Add missing entry for RuntimeError to doc string. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a1325c62adb..35f082f9ea1 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2011-05-23 Doug Evans + + * python/lib/gdb/printing.py (register_pretty_printer): Add missing + entry for RuntimeError to doc string. + 2011-05-23 Jerome Guitton * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction diff --git a/gdb/python/lib/gdb/printing.py b/gdb/python/lib/gdb/printing.py index ff24bb4e7ad..5207659aaa4 100644 --- a/gdb/python/lib/gdb/printing.py +++ b/gdb/python/lib/gdb/printing.py @@ -86,6 +86,7 @@ def register_pretty_printer(obj, printer): Raises: TypeError: A problem with the type of the printer. ValueError: The printer's name contains a semicolon ";". + RuntimeError: A printer with the same name is already registered. If the caller wants the printer to be listable and disableable, it must follow the PrettyPrinter API. This applies to the old way (functions) too.