diff options
author | Will Newton <will.newton@linaro.org> | 2013-11-01 17:44:19 -0700 |
---|---|---|
committer | Will Newton <will.newton@linaro.org> | 2013-11-05 09:18:41 +0000 |
commit | 12b272760b8ed06ee64f4b6ce52eb9beeed35841 (patch) | |
tree | b71945203eb04e67e0da15a6c6f016f3b0924f8e /gdb | |
parent | dba6fa9bce92c9f9fcca07269ac8443797bd9338 (diff) | |
download | gdb-12b272760b8ed06ee64f4b6ce52eb9beeed35841.zip gdb-12b272760b8ed06ee64f4b6ce52eb9beeed35841.tar.gz gdb-12b272760b8ed06ee64f4b6ce52eb9beeed35841.tar.bz2 |
gdb/arm-tdep.c: Use filtered output in arm_print_float_info.
gdb/ChangeLog:
2013-11-05 Will Newton <will.newton@linaro.org>
PR gdb/7670
* arm-tdep.c (print_fpu_flags): Use filtered output routines.
(arm_print_float_info): Likewise.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/arm-tdep.c | 26 |
2 files changed, 19 insertions, 13 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7d7a6fc..840fa8f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2013-11-05 Will Newton <will.newton@linaro.org> + + PR gdb/7670 + * arm-tdep.c (print_fpu_flags): Use filtered output routines. + (arm_print_float_info): Likewise. + 2013-11-04 Anton Blanchard <anton@samba.org> * target.c (memory_xfer_partial): Cap write to 4KB. diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c index 7c78a61..1ed21ea 100644 --- a/gdb/arm-tdep.c +++ b/gdb/arm-tdep.c @@ -3889,19 +3889,19 @@ arm_frame_align (struct gdbarch *gdbarch, CORE_ADDR sp) } static void -print_fpu_flags (int flags) +print_fpu_flags (struct ui_file *file, int flags) { if (flags & (1 << 0)) - fputs ("IVO ", stdout); + fputs_filtered ("IVO ", file); if (flags & (1 << 1)) - fputs ("DVZ ", stdout); + fputs_filtered ("DVZ ", file); if (flags & (1 << 2)) - fputs ("OFL ", stdout); + fputs_filtered ("OFL ", file); if (flags & (1 << 3)) - fputs ("UFL ", stdout); + fputs_filtered ("UFL ", file); if (flags & (1 << 4)) - fputs ("INX ", stdout); - putchar ('\n'); + fputs_filtered ("INX ", file); + fputc_filtered ('\n', file); } /* Print interesting information about the floating point processor @@ -3915,15 +3915,15 @@ arm_print_float_info (struct gdbarch *gdbarch, struct ui_file *file, type = (status >> 24) & 127; if (status & (1 << 31)) - printf (_("Hardware FPU type %d\n"), type); + fprintf_filtered (file, _("Hardware FPU type %d\n"), type); else - printf (_("Software FPU type %d\n"), type); + fprintf_filtered (file, _("Software FPU type %d\n"), type); /* i18n: [floating point unit] mask */ - fputs (_("mask: "), stdout); - print_fpu_flags (status >> 16); + fputs_filtered (_("mask: "), file); + print_fpu_flags (file, status >> 16); /* i18n: [floating point unit] flags */ - fputs (_("flags: "), stdout); - print_fpu_flags (status); + fputs_filtered (_("flags: "), file); + print_fpu_flags (file, status); } /* Construct the ARM extended floating point type. */ |