summaryrefslogtreecommitdiff
path: root/src/main-gdb-head.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/main-gdb-head.py')
-rw-r--r--src/main-gdb-head.py4
1 files changed, 3 insertions, 1 deletions
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: