From 9ad46e7d0457b5681793125adc9e722284dc6544 Mon Sep 17 00:00:00 2001 From: David Schulz Date: Wed, 12 Oct 2016 14:40:30 +0200 Subject: [PATCH] Debugger: Fix QDir dumper for Cdb Calling functions is currently not supported in the cdb python dumper. Change-Id: I07da5ba93ea3ad838e758ca79062ae9aa4e8fabc Reviewed-by: hjk --- share/qtcreator/debugger/qttypes.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/share/qtcreator/debugger/qttypes.py b/share/qtcreator/debugger/qttypes.py index 61de98ed3ce..0d154a1e633 100644 --- a/share/qtcreator/debugger/qttypes.py +++ b/share/qtcreator/debugger/qttypes.py @@ -353,7 +353,8 @@ def qdump__QDateTime(d, value): def qdump__QDir(d, value): - d.putNumChild(1) + if not d.isMsvcTarget(): + d.putNumChild(1) privAddress = d.extractPointer(value) bit32 = d.ptrSize() == 4 qt5 = d.qtVersion() >= 0x050000 @@ -424,7 +425,7 @@ def qdump__QDir(d, value): absoluteDirEntryOffset = dirEntryOffset + fileSystemEntrySize d.putStringValue(privAddress + dirEntryOffset) - if d.isExpanded(): + if d.isExpanded() and not d.isMsvcTarget(): with Children(d): ns = d.qtNamespace() d.call('int', value, 'count') # Fill cache.