]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* python/lib/gdb/printing.py (register_pretty_printer): Add missing
authorDoug Evans <dje@google.com>
Mon, 23 May 2011 17:38:06 +0000 (17:38 +0000)
committerDoug Evans <dje@google.com>
Mon, 23 May 2011 17:38:06 +0000 (17:38 +0000)
entry for RuntimeError to doc string.

gdb/ChangeLog
gdb/python/lib/gdb/printing.py

index a1325c62adb70f634dd91374631983bec00d5017..35f082f9ea1260220763f209dac1e0e7cf30064b 100644 (file)
@@ -1,3 +1,8 @@
+2011-05-23  Doug Evans  <dje@google.com>
+
+       * python/lib/gdb/printing.py (register_pretty_printer): Add missing
+       entry for RuntimeError to doc string.
+
 2011-05-23  Jerome Guitton  <guitton@adacore.com>
 
        * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
index ff24bb4e7ad9c9147b055a2e902e8ee626da40d1..5207659aaa4e14065d00697e7d142d5873737f36 100644 (file)
@@ -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.