public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] gdb/arm-tdep.c: Use filtered output in arm_print_float_info.
@ 2013-11-02  0:48 Will Newton
  2013-11-04 16:05 ` Tom Tromey
  2013-11-19 15:06 ` Richard Earnshaw
  0 siblings, 2 replies; 3+ messages in thread
From: Will Newton @ 2013-11-02  0:48 UTC (permalink / raw)
  To: gdb-patches; +Cc: Patch Tracking


gdb/ChangeLog:

2013-11-01  Will Newton  <will.newton@linaro.org>

	PR gdb/7670
	* arm-tdep.c (print_fpu_flags): Use filtered output routines.
	(arm_print_float_info): Likewise.
---
 gdb/arm-tdep.c | 26 +++++++++++++-------------
 1 file changed, 13 insertions(+), 13 deletions(-)

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.  */
-- 
1.8.1.4

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] gdb/arm-tdep.c: Use filtered output in arm_print_float_info.
  2013-11-02  0:48 [PATCH] gdb/arm-tdep.c: Use filtered output in arm_print_float_info Will Newton
@ 2013-11-04 16:05 ` Tom Tromey
  2013-11-19 15:06 ` Richard Earnshaw
  1 sibling, 0 replies; 3+ messages in thread
From: Tom Tromey @ 2013-11-04 16:05 UTC (permalink / raw)
  To: Will Newton; +Cc: gdb-patches, Patch Tracking

>>>>> "Will" == Will Newton <will.newton@linaro.org> writes:

Will> 2013-11-01  Will Newton  <will.newton@linaro.org>
Will> 	PR gdb/7670
Will> 	* arm-tdep.c (print_fpu_flags): Use filtered output routines.
Will> 	(arm_print_float_info): Likewise.

This is ok, thanks.

Tom

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] gdb/arm-tdep.c: Use filtered output in arm_print_float_info.
  2013-11-02  0:48 [PATCH] gdb/arm-tdep.c: Use filtered output in arm_print_float_info Will Newton
  2013-11-04 16:05 ` Tom Tromey
@ 2013-11-19 15:06 ` Richard Earnshaw
  1 sibling, 0 replies; 3+ messages in thread
From: Richard Earnshaw @ 2013-11-19 15:06 UTC (permalink / raw)
  To: Will Newton; +Cc: gdb-patches, Patch Tracking

On 02/11/13 00:48, Will Newton wrote:
> 
> gdb/ChangeLog:
> 
> 2013-11-01  Will Newton  <will.newton@linaro.org>
> 
> 	PR gdb/7670
> 	* arm-tdep.c (print_fpu_flags): Use filtered output routines.
> 	(arm_print_float_info): Likewise.

OK.

R.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-11-19 15:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-02  0:48 [PATCH] gdb/arm-tdep.c: Use filtered output in arm_print_float_info Will Newton
2013-11-04 16:05 ` Tom Tromey
2013-11-19 15:06 ` Richard Earnshaw

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).