r205085 - in /trunk/gcc: ChangeLog gdbhooks.py
dmalcolm@gcc.gnu.org
dmalcolm@gcc.gnu.org
Wed Nov 20 03:33:00 GMT 2013
Author: dmalcolm
Date: Wed Nov 20 03:33:33 2013
New Revision: 205085
URL: http://gcc.gnu.org/viewcvs?rev=205085&root=gcc&view=rev
Log:
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.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/gdbhooks.py
More information about the Gcc-cvs
mailing list