aboutsummaryrefslogtreecommitdiff
path: root/gdb/valprint.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2017-05-22 16:32:25 -0600
committerTom Tromey <tom@tromey.com>2017-06-12 15:04:57 -0600
commit4ac0cb1cf04f105586746a6cce5b0f93d76f2b33 (patch)
tree3fb05b0178669f51b7f69bcfc45eddcf43e686ea /gdb/valprint.h
parent30a254669b16b86166fed1f9a4c4f9cc55a07fdc (diff)
downloadgdb-4ac0cb1cf04f105586746a6cce5b0f93d76f2b33.zip
gdb-4ac0cb1cf04f105586746a6cce5b0f93d76f2b33.tar.gz
gdb-4ac0cb1cf04f105586746a6cce5b0f93d76f2b33.tar.bz2
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.
Diffstat (limited to 'gdb/valprint.h')
-rw-r--r--gdb/valprint.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/valprint.h b/gdb/valprint.h
index 8bfad21..f71d4ab 100644
--- a/gdb/valprint.h
+++ b/gdb/valprint.h
@@ -138,7 +138,7 @@ extern void print_octal_chars (struct ui_file *, const gdb_byte *,
unsigned int, enum bfd_endian);
extern void print_decimal_chars (struct ui_file *, const gdb_byte *,
- unsigned int, enum bfd_endian);
+ unsigned int, bool, enum bfd_endian);
extern void print_hex_chars (struct ui_file *, const gdb_byte *,
unsigned int, enum bfd_endian, bool);