diff options
| author | dmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-11-20 03:33:33 +0000 |
|---|---|---|
| committer | dmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-11-20 03:33:33 +0000 |
| commit | 9b0117771a817e8fdb531bff4d899a43f89ecef8 (patch) | |
| tree | 53631e39ee9d133a8eb5c5efbdb19a39f139cfb1 /libjava/classpath/gnu/java/text | |
| parent | fd37483d75799d0a83eff662cb869a9f81ef7183 (diff) | |
| download | ppe42-gcc-9b0117771a817e8fdb531bff4d899a43f89ecef8.tar.gz ppe42-gcc-9b0117771a817e8fdb531bff4d899a43f89ecef8.zip | |
gdbhooks.py: Reorganize, to support regex matching and typedefs
* gdbhooks.py (GdbSubprinter.__init__): Drop str_type_ field.
(GdbSubprinter.handles_type): New.
(GdbSubprinterTypeList): New subclass of GdbSubprinter.
(GdbSubprinterRegex): New subclass of GdbSubprinter.
(GdbPrettyPrinters.add_printer): Remove in favor of...
(GdbPrettyPrinters.add_printer_for_types): ...this new method
and...
(GdbPrettyPrinters.add_printer_for_regex): ...this other new method.
(GdbPrettyPrinters.__call__): Update search for subprinter
to use handles_type method.
(build_pretty_printer): Update registration of subprinters to
use the new API above, supporting multiple spelling of each type,
and allowing for future regex-based subprinters.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205085 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/classpath/gnu/java/text')
0 files changed, 0 insertions, 0 deletions

