From 30a254669b16b86166fed1f9a4c4f9cc55a07fdc Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 22 May 2017 03:55:58 -0600 Subject: Don't always zero pad in print_*_chars This changes print_octal_chars and print_decimal_chars to never zero pad, and changes print_binary_chars and print_hex_chars to only optionally zero-pad, based on a flag. ChangeLog 2017-06-12 Tom Tromey PR exp/16225: * valprint.h (print_binary_chars, print_hex_chars): Update. * valprint.c (val_print_type_code_int): Update. (print_binary_chars): Add "zero_pad" argument. (emit_octal_digit): New function. (print_octal_chars): Don't zero-pad. (print_decimal_chars): Likewise. (print_hex_chars): Add "zero_pad" argument. * sh64-tdep.c (sh64_do_fp_register): Update. * regcache.c (regcache::dump): Update. * printcmd.c (print_scalar_formatted): Update. * infcmd.c (default_print_one_register_info): Update. 2017-06-12 Tom Tromey PR exp/16225: * gdb.reverse/i386-sse-reverse.exp: Update tests. * gdb.arch/vsx-regs.exp: Update tests. * gdb.arch/s390-vregs.exp (hex128): New proc. Update test. * gdb.arch/altivec-regs.exp: Update tests. --- gdb/regcache.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/regcache.c') diff --git a/gdb/regcache.c b/gdb/regcache.c index 46f4641..43ea430 100644 --- a/gdb/regcache.c +++ b/gdb/regcache.c @@ -1594,7 +1594,7 @@ regcache::dump (ui_file *file, enum regcache_dump_what what_to_dump) raw_update (regnum); print_hex_chars (file, register_buffer (regnum), m_descr->sizeof_register[regnum], - gdbarch_byte_order (gdbarch)); + gdbarch_byte_order (gdbarch), true); } } @@ -1636,7 +1636,7 @@ regcache::dump (ui_file *file, enum regcache_dump_what what_to_dump) else print_hex_chars (file, buf, m_descr->sizeof_register[regnum], - gdbarch_byte_order (gdbarch)); + gdbarch_byte_order (gdbarch), true); if (value != NULL) { -- cgit v1.1