PR python/18299
authorDoug Evans <dje@google.com>
Wed, 29 Apr 2015 05:14:23 +0000 (22:14 -0700)
committerDoug Evans <dje@google.com>
Wed, 29 Apr 2015 05:14:23 +0000 (22:14 -0700)
commit34f5f757b389e8fb3eab64f816e484c2cc434292
treed03a9187ae43e7827e184dff9afd6d4de63c3b88
parent69b4374a87e5029ac4831c7a4471815514df662f
PR python/18299

gdb/ChangeLog:

PR python/18299
* python/lib/gdb/printing.py (register_pretty_printer): Handle
name or __name__ attributes.  Handle gdb module as first argument.

gdb/testsuite/ChangeLog:

* gdb.python/py-pp-maint.py: Move "replace" testing to ...
* gdb.python/py-pp-registration.exp: ... here.  New file.
* gdb.python/py-pp-registration.c: New file.
* gdb.python/py-pp-registration.py: New file.
gdb/ChangeLog
gdb/python/lib/gdb/printing.py
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.python/py-pp-maint.py
gdb/testsuite/gdb.python/py-pp-registration.c [new file with mode: 0644]
gdb/testsuite/gdb.python/py-pp-registration.exp [new file with mode: 0644]
gdb/testsuite/gdb.python/py-pp-registration.py [new file with mode: 0644]
This page took 0.035989 seconds and 4 git commands to generate.