Fix float to LONGEST conversion.
authorAli Tamur <tamur@google.com>
Wed, 28 Aug 2019 01:58:57 +0000 (18:58 -0700)
committerAli Tamur <tamur@google.com>
Wed, 11 Sep 2019 19:21:50 +0000 (12:21 -0700)
commit9cab7ecda21c6499b0559f6e676fe222e26141be
tree48692643c655d394dfc56b8afa81d738b6821ccf
parent67547d896b0593b0fa62e23ac68c483a7e8566e2
Fix float to LONGEST conversion.

The code used to have undefined behaviour when template parameter is float and
host_float is NaN, because it attempted to convert NaN value to LONGEST at the
last statement. This frequently caused crashes on tests that checked "info
all-registers" (at least when the code is compiled with clang; I didn't test
with gdb).

gdb/ChangeLog:

*target-float.c (host_float_ops<T>::to_longest): Update
implementation.
gdb/ChangeLog
gdb/target-float.c
This page took 0.039073 seconds and 4 git commands to generate.