Don't always zero pad in print_*_chars
authorTom Tromey <tom@tromey.com>
Mon, 22 May 2017 09:55:58 +0000 (03:55 -0600)
committerTom Tromey <tom@tromey.com>
Mon, 12 Jun 2017 21:04:56 +0000 (15:04 -0600)
commit30a254669b16b86166fed1f9a4c4f9cc55a07fdc
treeaea05de61cdb0d22c97c6ae0487f992802a1feb3
parentb3464d0316235899d9facf81896d7a427d5cd6d0
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  <tom@tromey.com>

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  <tom@tromey.com>

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.
12 files changed:
gdb/ChangeLog
gdb/infcmd.c
gdb/printcmd.c
gdb/regcache.c
gdb/sh64-tdep.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.arch/altivec-regs.exp
gdb/testsuite/gdb.arch/s390-vregs.exp
gdb/testsuite/gdb.arch/vsx-regs.exp
gdb/testsuite/gdb.reverse/i386-sse-reverse.exp
gdb/valprint.c
gdb/valprint.h
This page took 0.041627 seconds and 4 git commands to generate.