Tom Tromey
d6382fffde
Fix two regressions in scalar printing
...
PR gdb/21675 points out a few regressions in scalar printing.
One type of regression is due to not carrying over the old handling of
floating point printing -- where a format like "/d" causes a floating
point number to first be cast to a signed integer. This patch restores
this behavior.
The other regression is a longstanding bug in print_octal_chars: one of
the constants was wrong. This patch fixes the constant and adds static
asserts to help catch this sort of error.
ChangeLog
2017-08-14 Tom Tromey <tom@tromey.com>
PR gdb/21675
* valprint.c (LOW_ZERO): Change value to 034.
(print_octal_chars): Add static_asserts for octal constants.
* printcmd.c (print_scalar_formatted): Add 'd' case.
testsuite/ChangeLog
2017-08-14 Tom Tromey <tom@tromey.com>
PR gdb/21675:
* gdb.base/printcmds.exp (test_radices): New function.
* gdb.dwarf2/var-access.exp: Use p/u, not p/d.
* gdb.base/sizeof.exp (check_valueof): Use p/d.
* lib/gdb.exp (get_integer_valueof): Use p/d.
2017-08-14 10:14:05 -06:00
..
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-02-20 20:59:56 +01:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-02-01 16:59:00 +01:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-07-06 11:59:39 -07:00
2017-07-06 11:59:39 -07:00
2017-07-06 11:59:39 -07:00
2017-07-06 11:59:39 -07:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-02-20 21:02:20 +01:00
2017-06-13 15:20:26 +02:00
2017-01-01 10:52:34 +04:00
2017-01-25 16:24:44 +00:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-06-13 15:20:26 +02:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-06-13 15:20:26 +02:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-07-09 10:46:49 -06:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-06-13 15:20:25 +02:00
2017-08-14 10:14:05 -06:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00