Commit 48007785 authored by Eike Ziller's avatar Eike Ziller Committed by hjk
Browse files

debugger: Fix Qt4 QFile dumper



Change-Id: Ifd2caaef4d0c286f2855175acb2dc1b835213c37
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent c726f3c4
......@@ -329,9 +329,10 @@ def qdump__QFile(d, value):
fileNameAddress = d.addressOf(d_ptr.cast(ptype).dereference()["fileName"])
d.putNumChild(1)
except:
# 176 and 280 are best guesses for Qt 5
offset = 176 if d.is32bit() else 280
#qt5 = d.qtVersion() >= 0x050000
if d.qtVersion() >= 0x050000:
offset = 176 if d.is32bit() else 280
else:
offset = 140 if d.is32bit() else 232
privAddress = d.dereference(d.addressOf(value) + d.ptrSize())
fileNameAddress = privAddress + offset
d.putNumChild(0)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment