Let print_decimal_chars handle signed values
authorTom Tromey <tom@tromey.com>
Mon, 22 May 2017 22:32:25 +0000 (16:32 -0600)
committerTom Tromey <tom@tromey.com>
Mon, 12 Jun 2017 21:04:57 +0000 (15:04 -0600)
commit4ac0cb1cf04f105586746a6cce5b0f93d76f2b33
tree3fb05b0178669f51b7f69bcfc45eddcf43e686ea
parent30a254669b16b86166fed1f9a4c4f9cc55a07fdc
Let print_decimal_chars handle signed values

This changes print_decimal_chars to handle signed values.

gdb/ChangeLog
2017-06-12  Tom Tromey  <tom@tromey.com>

PR exp/16225:
* valprint.h (print_decimal_chars): Update.
* valprint.c (maybe_negate_by_bytes): New function.
(print_decimal_chars): Add "is_signed" argument.
* printcmd.c (print_scalar_formatted): Update.
gdb/ChangeLog
gdb/printcmd.c
gdb/valprint.c
gdb/valprint.h