forked from qt-creator/qt-creator
Debugger: Some dumper robustification
Change-Id: Id0af97ed54dd936a68696e66c3fcf4dcbf2645e8 Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user