debugger: add python dumpers for __m128

This commit is contained in:
hjk
2010-10-26 10:40:31 +02:00
parent d599dc1f0f
commit 26339061e3
4 changed files with 84 additions and 8 deletions

View File

@@ -2262,6 +2262,33 @@ def qdump__TLitC(d, item):
d.putValue(encodeSymbianString(base, size), Hex4EncodedLittleEndian)
#######################################################################
#
# SSE
#
#######################################################################
def qform____m128():
return "As Floats,As Doubles"
def qdump____m128(d, item):
d.putValue(" ")
d.putNumChild(1)
if d.isExpanded(item):
format = d.itemFormat(item)
if format == 2: # As Double
innerType = lookupType("double")
count = 2
else: # Default, As float
innerType = lookupType("float")
count = 4
p = item.value.address.cast(innerType.pointer())
with Children(d, count, innerType):
for i in xrange(count):
d.putItem(Item(p.dereference(), item.iname))
p += 1
#######################################################################
#
# Display Test