forked from qt-creator/qt-creator
Debugger: Fix QDir dumper for Cdb
Calling functions is currently not supported in the cdb python dumper. Change-Id: I07da5ba93ea3ad838e758ca79062ae9aa4e8fabc Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -353,7 +353,8 @@ def qdump__QDateTime(d, value):
|
|||||||
|
|
||||||
|
|
||||||
def qdump__QDir(d, value):
|
def qdump__QDir(d, value):
|
||||||
d.putNumChild(1)
|
if not d.isMsvcTarget():
|
||||||
|
d.putNumChild(1)
|
||||||
privAddress = d.extractPointer(value)
|
privAddress = d.extractPointer(value)
|
||||||
bit32 = d.ptrSize() == 4
|
bit32 = d.ptrSize() == 4
|
||||||
qt5 = d.qtVersion() >= 0x050000
|
qt5 = d.qtVersion() >= 0x050000
|
||||||
@@ -424,7 +425,7 @@ def qdump__QDir(d, value):
|
|||||||
absoluteDirEntryOffset = dirEntryOffset + fileSystemEntrySize
|
absoluteDirEntryOffset = dirEntryOffset + fileSystemEntrySize
|
||||||
|
|
||||||
d.putStringValue(privAddress + dirEntryOffset)
|
d.putStringValue(privAddress + dirEntryOffset)
|
||||||
if d.isExpanded():
|
if d.isExpanded() and not d.isMsvcTarget():
|
||||||
with Children(d):
|
with Children(d):
|
||||||
ns = d.qtNamespace()
|
ns = d.qtNamespace()
|
||||||
d.call('int', value, 'count') # Fill cache.
|
d.call('int', value, 'count') # Fill cache.
|
||||||
|
Reference in New Issue
Block a user