Commit 62811941 authored by hjk's avatar hjk
Browse files

debugger: fix display of QContainer<T>::NestedType

parent a14b1a58
...@@ -877,13 +877,15 @@ class Dumper: ...@@ -877,13 +877,15 @@ class Dumper:
# subsequent underscores are reserved for the implemention. # subsequent underscores are reserved for the implemention.
if typeobj.code == gdb.TYPE_CODE_PTR: if typeobj.code == gdb.TYPE_CODE_PTR:
return self.stripNamespaceFromType(typeobj.target()) + "__star" return self.stripNamespaceFromType(typeobj.target()) + "__star"
# FIXME: pass ns from plugin
type = stripClassTag(str(typeobj)) type = stripClassTag(str(typeobj))
if len(self.ns) > 0 and type.startswith(self.ns): if len(self.ns) > 0 and type.startswith(self.ns):
type = type[len(self.ns):] type = type[len(self.ns):]
pos = type.find("<") pos = type.find("<")
if pos != -1: # FIXME: make it recognize foo<A>::bar<B>::iterator?
type = type[0:pos] while pos != -1:
pos1 = type.rfind(">", pos)
type = type[0:pos] + type[pos1+1:]
pos = type.find("<")
return type return type
def isMovableType(self, type): def isMovableType(self, type):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment