Reuse print_hex_chars.

https://sourceware.org/ml/gdb-patches/2013-09/msg00768.html

gdb/ChangeLog

        * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
This commit is contained in:
Andrew Burgess 2013-09-23 09:18:44 +00:00
parent bf3d9781ec
commit 2cc762b50b
2 changed files with 8 additions and 8 deletions

View File

@ -1,3 +1,7 @@
2013-09-23 Andrew Burgess <aburgess@broadcom.com>
* sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
2013-09-19 Pedro Alves <palves@redhat.com> 2013-09-19 Pedro Alves <palves@redhat.com>
* breakpoint.c (remove_threaded_breakpoints): Skip non-user * breakpoint.c (remove_threaded_breakpoints): Skip non-user

View File

@ -1948,14 +1948,10 @@ sh64_do_fp_register (struct gdbarch *gdbarch, struct ui_file *file,
fprintf_filtered (file, "%-10.9g", flt); fprintf_filtered (file, "%-10.9g", flt);
/* Print the fp register as hex. */ /* Print the fp register as hex. */
fprintf_filtered (file, "\t(raw 0x"); fprintf_filtered (file, "\t(raw ");
for (j = 0; j < register_size (gdbarch, regnum); j++) print_hex_chars (file, raw_buffer,
{ register_size (gdbarch, regnum),
int idx = gdbarch_byte_order (gdbarch) gdbarch_byte_order (gdbarch));
== BFD_ENDIAN_BIG ? j : register_size
(gdbarch, regnum) - 1 - j;
fprintf_filtered (file, "%02x", raw_buffer[idx]);
}
fprintf_filtered (file, ")"); fprintf_filtered (file, ")");
fprintf_filtered (file, "\n"); fprintf_filtered (file, "\n");
} }