Debugger: Add leading zeros to transfer a hex-encoded float

Change-Id: Ie9d9159af67c0ef49cd133ec399d50909b853227
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2020-09-23 17:41:51 +02:00
parent 014b90f780
commit f7201c0c8f

View File

@@ -2503,7 +2503,7 @@ def qdump_64__QV4__Value(d, value):
d.putValue('%d' % vv) d.putValue('%d' % vv)
elif (v >> QV4_IsDouble_Shift): elif (v >> QV4_IsDouble_Shift):
d.putBetterType('%sQV4::Value (double)' % ns) d.putBetterType('%sQV4::Value (double)' % ns)
d.putValue('%x' % (v ^ QV4_NaNEncodeMask), 'float:8') d.putValue('%0.16x' % (v ^ QV4_NaNEncodeMask), 'float:8')
elif tag == QV4_ValueType_Undefined_Type and not new: elif tag == QV4_ValueType_Undefined_Type and not new:
d.putBetterType('%sQV4::Value (undefined)' % ns) d.putBetterType('%sQV4::Value (undefined)' % ns)
d.putValue('(undefined)') d.putValue('(undefined)')