]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/testsuite/ChangeLog
Allow - in %p for printf
authorTom Tromey <tom@tromey.com>
Wed, 14 Feb 2018 18:12:17 +0000 (11:12 -0700)
committerTom Tromey <tom@tromey.com>
Wed, 14 Mar 2018 15:44:33 +0000 (09:44 -0600)
commitb8c2339b2f46d4885b933b832fc5b37c7ca101a6
tree58f253f8bc6c9571867c638dd71daff548ea5436
parent80ae639d3cc4f1e83f1ad48686f87417c06ca6dc
Allow - in %p for printf

PR cli/19918 points out that a printf format like "%-5p" will cause a
gdb crash.  The bug is problem is that printf_pointer doesn't take the
"-" flag into account.

gdb/ChangeLog
2018-03-14  Tom Tromey  <tom@tromey.com>

PR cli/19918:
* printcmd.c (printf_pointer): Allow "-" in format.

gdb/testsuite/ChangeLog
2018-03-14  Tom Tromey  <tom@tromey.com>

PR cli/19918:
* gdb.base/printcmds.exp (test_printf): Add printf test using '-'
flag.
gdb/ChangeLog
gdb/printcmd.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/printcmds.exp