diff options
author | David Malcolm <dmalcolm@redhat.com> | 2013-11-20 03:33:33 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2013-11-20 03:33:33 +0000 |
commit | 8f1edba1fba9a8ce6901929a3c03d78b87ae3e4e (patch) | |
tree | 53631e39ee9d133a8eb5c5efbdb19a39f139cfb1 /gcc/builtins.c | |
parent | 7900247f6eae25f5c199900ef937142680988900 (diff) | |
download | gcc-8f1edba1fba9a8ce6901929a3c03d78b87ae3e4e.zip gcc-8f1edba1fba9a8ce6901929a3c03d78b87ae3e4e.tar.gz gcc-8f1edba1fba9a8ce6901929a3c03d78b87ae3e4e.tar.bz2 |
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.
From-SVN: r205085
Diffstat (limited to 'gcc/builtins.c')
0 files changed, 0 insertions, 0 deletions