Commit 898e84ce authored by hjk's avatar hjk
Browse files

debugger: add dumper for TLitC<N>, fix encodign for TBuf

parent 4051d822
......@@ -1886,16 +1886,29 @@ def qdump__wstring(d, item):
#
#######################################################################
def encodeSymbianString(base, size):
s = ""
for i in xrange(size):
val = int(base[i])
if val == 9:
s += "5c007400" # \t
else:
s += "%02x%02x" % (val % 256, val / 256)
return s
def qdump__TBuf(d, item):
size = item.value["iLength"] & 0xffff
base = item.value["iBuf"]
max = numericTemplateArgument(item.value.type, 0)
check(0 <= size and size <= max)
d.putNumChild(0)
d.putValue(encodeSymbianString(base, size), "7")
def qdump__TLitC(d, item):
size = item.value["iTypeLength"] & 0xffff
base = item.value["iBuf"]
s = ""
for i in xrange(size):
val = int(base[i])
s += "%02x" % (val % 256)
s += "%02x" % (val / 256)
max = numericTemplateArgument(item.value.type, 0)
check(0 <= size and size <= max)
d.putNumChild(0)
d.putValue(s, "6")
d.putValue(encodeSymbianString(base, size), "7")
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