Debugger: Add simple QV4::String dumper

Change-Id: Ide277128d30c4dcc5c396441ebd6e40aa3fc8b51
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
This commit is contained in:
hjk
2014-03-17 17:48:46 +01:00
parent b950c8c164
commit 5d1bc3859d
3 changed files with 45 additions and 0 deletions
+8
View File
@@ -664,6 +664,14 @@ class Dumper(DumperBase):
index -= 1;
return None
def directBaseObject(self, value, index = 0):
for f in value.type.fields():
if f.is_base_class:
if index == 0:
return value.cast(f.type)
index -= 1;
return None
def checkPointer(self, p, align = 1):
if not self.isNull(p):
p.dereference()