Debugger: Some dumper robustification

Change-Id: Id0af97ed54dd936a68696e66c3fcf4dcbf2645e8
Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
hjk
2014-01-25 15:32:10 +01:00
parent 8cdb5acab0
commit 51b743a2d1
2 changed files with 24 additions and 20 deletions
+6 -5
View File
@@ -1156,13 +1156,14 @@ class Dumper(DumperBase):
def isStructType(self, typeobj):
return typeobj.code == gdb.TYPE_CODE_STRUCT
def putArrayData(self, type, base, n,
def putArrayData(self, typeobj, base, n,
childNumChild = None, maxNumChild = 10000):
if not self.tryPutArrayContents(type, base, n):
base = self.createPointerValue(base, type)
with Children(self, n, type, childNumChild, maxNumChild,
base, type.sizeof):
if not self.tryPutArrayContents(typeobj, base, n):
base = self.createPointerValue(base, typeobj)
with Children(self, n, typeobj, childNumChild, maxNumChild,
base, typeobj.sizeof):
for i in self.childRange():
i = toInteger(i)
self.putSubItem(i, (base + i).dereference())
def putCallItem(self, name, value, func, *args):