Fix regression on ARM after Target FP patches
authorUlrich Weigand <ulrich.weigand@de.ibm.com>
Fri, 3 Nov 2017 15:07:23 +0000 (16:07 +0100)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Fri, 3 Nov 2017 15:07:23 +0000 (16:07 +0100)
commit67fa57cfa536cefb5ae7cc4635db66d03fdbd8bb
tree640dda9e9661138ce5f35d577bf7e448372ec7ac
parentfdddd2900f39584e7d6cee27127593fba2cb0cf2
Fix regression on ARM after Target FP patches

Commit edd079d9f6ca2f9ad21322b742269aec5de61190 exposed a pre-existing bug
in convert_doublest_to_floatformat.  In the specific case of converting
a zero value to a floatformat using a "special" byteorder (i.e. neither
floatformat_little nor floatformat_big), the output buffer was actually
left uninitialized.

gdb/ChangeLog:
2017-11-03  Ulrich Weigand  <uweigand@de.ibm.com>

* doublest.c (convert_doublest_to_floatformat): Fix uninitialized
output when converting a zero value to a special byteorder format.
gdb/ChangeLog
gdb/doublest.c