Target FP printing: Use floatformat_to_string in tdep code
authorUlrich Weigand <ulrich.weigand@de.ibm.com>
Tue, 24 Oct 2017 16:01:39 +0000 (18:01 +0200)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Tue, 24 Oct 2017 16:01:39 +0000 (18:01 +0200)
commit8ba0dd515c1ba23318f28c6bb04c9da573855b50
treeaf57478382ceb88d7d664f38efcfbd72994d0e71
parent16e812b29e68c4a6fcad73b033716c4f385ce94f
Target FP printing: Use floatformat_to_string in tdep code

A few tdep files use target-specific printing routines to output values in
the floating-point registers.  To get rid of host floating-point code,
this patch changes them to use floatformat_to_string instead.

No functional change intended, the resulting output should look the same.

ChangeLog:
2017-10-24  Ulrich Weigand  <uweigand@de.ibm.com>

* i387-tdep.c (print_i387_value): Use floatformat_to_string.
* sh64-tdep.c (sh64_do_fp_register): Likewise.
* mips-tdep.c (mips_print_fp_register): Likewise.
gdb/ChangeLog
gdb/i387-tdep.c
gdb/mips-tdep.c
gdb/sh64-tdep.c