Commit 43851305 authored by hjk's avatar hjk
Browse files

Debugger: Fix std::string dumper on 64 bit



Task-number: QTCREATORBUG-10925
Change-Id: Iec57515e8adca8bd2e638157b9c1f0d4d9310c68
Reviewed-by: default avatarChristian Stenger <christian.stenger@digia.com>
parent e4324184
......@@ -280,7 +280,7 @@ def qdump__std__stringHelper1(d, value, charSize):
sizePtr = data.cast(d.sizetType().pointer())
size = int(sizePtr[-3])
alloc = int(sizePtr[-2])
refcount = int(sizePtr[-1])
refcount = int(sizePtr[-1]) & 0xffffffff
d.check(refcount >= -1) # Can be -1 accoring to docs.
d.check(0 <= size and size <= alloc and alloc <= 100*1000*1000)
qdump_stringHelper(d, sizePtr, size * charSize, charSize)
......
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