Commit 76fed505 authored by hjk's avatar hjk

debugger: fix QString dumper

Doh! In contrast to the C++ version we are operating on ushort* here.
parent fbb8f399
......@@ -709,7 +709,7 @@ def encodeString(value):
check(0 <= size and size <= alloc and alloc <= 100*1000*1000)
if size > 0:
checkAccess(data, 4)
checkAccess(data + size * 2) == 0
checkAccess(data + size) == 0
checkRef(d_ptr["ref"])
p = gdb.Value(d_ptr["data"])
s = ""
......
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