summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorhjk <hjk@theqtcompany.com>2015-03-24 10:18:18 +0100
committerhjk <hjk@theqtcompany.com>2015-03-24 12:51:03 +0000
commit0c2a1ab3bec6bfd45720a47d29c77a3de92c2354 (patch)
tree88ddf8eb711fe8fc8b730dff7b86b505a3592d3c /share
parent8a63f9ea9d53a0944e7d6975a40d4a9045cab600 (diff)
downloadqt-creator-0c2a1ab3bec6bfd45720a47d29c77a3de92c2354.tar.gz
Debugger: Adjust QFile dumper to library changes
Change-Id: I44ac0de970a41fc7da0453ed853396a6943ffb0b Reviewed-by: hjk <hjk@theqtcompany.com>
Diffstat (limited to 'share')
-rw-r--r--share/qtcreator/debugger/qttypes.py14
1 files changed, 12 insertions, 2 deletions
diff --git a/share/qtcreator/debugger/qttypes.py b/share/qtcreator/debugger/qttypes.py
index f640786cef..82305dd534 100644
--- a/share/qtcreator/debugger/qttypes.py
+++ b/share/qtcreator/debugger/qttypes.py
@@ -421,10 +421,20 @@ def qdump__QDir(d, value):
def qdump__QFile(d, value):
- # 9fc0965 changes the layout of the private structure
+ # 9fc0965 and a373ffcd change the layout of the private structure
qtVersion = d.qtVersion()
is32bit = d.is32bit()
- if qtVersion > 0x050200:
+ if qtVersion >= 0x050500:
+ if d.isWindowsTarget():
+ offset = 164 if is32bit else 248
+ else:
+ offset = 156 if is32bit else 248
+ elif qtVersion >= 0x050400:
+ if d.isWindowsTarget():
+ offset = 188 if is32bit else 272
+ else:
+ offset = 180 if is32bit else 272
+ elif qtVersion > 0x050200:
if d.isWindowsTarget():
offset = 180 if is32bit else 272
else: