Commit b076618a authored by Thiago Macieira's avatar Thiago Macieira Committed by hjk
Browse files

Add support for __m128i types in the debugging dumpers



I can't make it display the unsigned char[16] as a string and I have
no clue why. This is all magic to me...

This is good enough anyway

Change-Id: I1d78c01b3baaec8e7d4506552d79a536b573e9a6
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent 0d130284
...@@ -48,6 +48,30 @@ def qdump____m128(d, value): ...@@ -48,6 +48,30 @@ def qdump____m128(d, value):
else: # Default, As float else: # Default, As float
d.putArrayData(d.lookupType("float"), value.address, 4) d.putArrayData(d.lookupType("float"), value.address, 4)
def qdump____m128i(d, value):
data = d.readMemory(value.address, 16)
d.putValue(':'.join("%04x" % int(data[i:i+4], 16) for i in xrange(0, 32, 4)))
d.putNumChild(4)
if d.isExpanded():
# fake 4 children as arrays
with Children(d):
with SubItem(d, "uint8x16"):
d.putEmptyValue()
d.putType("unsigned char [16]")
d.putArrayData(d.lookupType("unsigned char"), value.address, 16)
d.putAddress(value.address)
with SubItem(d, "uint16x8"):
d.putEmptyValue()
d.putType("unsigned short [8]")
d.putArrayData(d.lookupType("unsigned short"), value.address, 8)
with SubItem(d, "uint32x4"):
d.putEmptyValue()
d.putType("unsigned int [4]")
d.putArrayData(d.lookupType("unsigned int"), value.address, 4)
with SubItem(d, "uint64x2"):
d.putEmptyValue()
d.putType("unsigned long long [2]")
d.putArrayData(d.lookupType("unsigned long long"), value.address, 2)
####################################################################### #######################################################################
# #
......
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