aboutsummaryrefslogtreecommitdiffstats
path: root/share/qtcreator/debugger
diff options
context:
space:
mode:
authorDavid Schulz <david.schulz@qt.io>2019-06-28 09:22:40 +0200
committerDavid Schulz <david.schulz@qt.io>2019-07-02 08:26:14 +0000
commit1571384e4998b9e20ad54be8479c60def8bfaba4 (patch)
tree449f6457cd3f03fb1cddc24270f75963627b4195 /share/qtcreator/debugger
parent302be8acb92a06b0f790e67d4e2321a45bac89a4 (diff)
Debugger: add dptr child to QDir for msvc targets
Makes it possible to access the entry lists if these were populated by the code. Change-Id: I066824d2ce7f75a38d208155156c93d06458f8b3 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'share/qtcreator/debugger')
-rw-r--r--share/qtcreator/debugger/qttypes.py32
1 files changed, 16 insertions, 16 deletions
diff --git a/share/qtcreator/debugger/qttypes.py b/share/qtcreator/debugger/qttypes.py
index 77cb2fa512..c4e4d72157 100644
--- a/share/qtcreator/debugger/qttypes.py
+++ b/share/qtcreator/debugger/qttypes.py
@@ -396,8 +396,7 @@ def qdump__QDateTime(d, value):
def qdump__QDir(d, value):
- if not d.isMsvcTarget():
- d.putNumChild(1)
+ d.putNumChild(1)
privAddress = d.extractPointer(value)
bit32 = d.ptrSize() == 4
qt5 = d.qtVersion() >= 0x050000
@@ -468,21 +467,22 @@ def qdump__QDir(d, value):
absoluteDirEntryOffset = dirEntryOffset + fileSystemEntrySize
d.putStringValue(privAddress + dirEntryOffset)
- if d.isExpanded() and not d.isMsvcTarget():
+ if d.isExpanded():
with Children(d):
- ns = d.qtNamespace()
- d.call('int', value, 'count') # Fill cache.
- #d.putCallItem('absolutePath', '@QString', value, 'absolutePath')
- #d.putCallItem('canonicalPath', '@QString', value, 'canonicalPath')
- with SubItem(d, 'absolutePath'):
- typ = d.lookupType(ns + 'QString')
- d.putItem(d.createValue(privAddress + absoluteDirEntryOffset, typ))
- with SubItem(d, 'entryInfoList'):
- typ = d.lookupType(ns + 'QFileInfo')
- qdumpHelper_QList(d, privAddress + fileInfosOffset, typ)
- with SubItem(d, 'entryList'):
- typ = d.lookupType(ns + 'QStringList')
- d.putItem(d.createValue(privAddress + filesOffset, typ))
+ if not d.isMsvcTarget():
+ ns = d.qtNamespace()
+ d.call('int', value, 'count') # Fill cache.
+ #d.putCallItem('absolutePath', '@QString', value, 'absolutePath')
+ #d.putCallItem('canonicalPath', '@QString', value, 'canonicalPath')
+ with SubItem(d, 'absolutePath'):
+ typ = d.lookupType(ns + 'QString')
+ d.putItem(d.createValue(privAddress + absoluteDirEntryOffset, typ))
+ with SubItem(d, 'entryInfoList'):
+ typ = d.lookupType(ns + 'QFileInfo')
+ qdumpHelper_QList(d, privAddress + fileInfosOffset, typ)
+ with SubItem(d, 'entryList'):
+ typ = d.lookupType(ns + 'QStringList')
+ d.putItem(d.createValue(privAddress + filesOffset, typ))
d.putFields(value)