Fix presentation of floating point registers.
commit6f15142e450dfda48497a2bb2adf0225fe91e4d6
authorJohannes Sixt <j6t@kdbg.org>
Sun, 30 Jan 2011 18:45:09 +0000 (30 19:45 +0100)
committerJohannes Sixt <j6t@kdbg.org>
Sun, 30 Jan 2011 18:45:09 +0000 (30 19:45 +0100)
tree03e2997cb1f37ec67b690f5db5ed9ec922e7f3a6
parent461809f6d73a7592521ca7071b80f08377690736
Fix presentation of floating point registers.

Floating point registers are displayed by converting the raw byte sequence
to a long double value, which is then converted to a string representation
using QString::number(). However, this function does not have a long double
overload, hence, the value was always truncated to double before it was
displayed.

As Rick Regan noticed, the value -2.8309023271733244206437071197035129e-324
was displayed incorrectly as -4.94065645841246544177e-324.

This fixes it by using sprintf() instead of QString::number().
kdbg/regwnd.cpp
kdbg/testprogs/Makefile
kdbg/testprogs/longdouble.c [new file with mode: 0644]