From be870a6ed796af00a3c1c2f23cd189bf33fc6a4c Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Thu, 31 Oct 2013 15:06:05 -0700 Subject: Add some more pretty printers --- src/main-gdb-head.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/main-gdb-head.py') diff --git a/src/main-gdb-head.py b/src/main-gdb-head.py index 44c1c2e..75e43bf 100644 --- a/src/main-gdb-head.py +++ b/src/main-gdb-head.py @@ -60,13 +60,15 @@ class FastPrinters(object): def add_printer(self, cls): assert hasattr(cls, 'enabled') + # TODO: check if the class name exists + # this is really hard since templates are involved self.printers[cls.name] = cls @property def subprinters(self): return self.printers.values() - def strip_templates(self, name, __pattern=re.compile('<[^<>]>')): + def strip_templates(self, name, __pattern=re.compile('<[^<>]*>')): # TODO what about '<' and '>' as non-type template parameters? changed = 1 while changed: -- cgit v1.2.3-60-g2f50