Debugger: Add a backend specific Dumper.hasChildWithName

Change-Id: I89432915f2b6eb52e706d344b9e7998e1f96ab1f
Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
hjk
2014-01-15 17:38:23 +01:00
parent 580a8c16b9
commit 239dee6e9d
3 changed files with 12 additions and 2 deletions
+7
View File
@@ -717,6 +717,13 @@ class Dumper(DumperBase):
def call(self, value, func, *args):
return self.call2(value, func, args)
def hasChildWithName(self, value, name):
try:
value[name]
return True
except:
return False
def makeValue(self, type, init):
type = "::" + stripClassTag(str(type));
# Avoid malloc symbol clash with QVector.