This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug cli/19918] assertion complaint on printf %-16p
- From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Wed, 14 Mar 2018 15:51:07 +0000
- Subject: [Bug cli/19918] assertion complaint on printf %-16p
- Auto-submitted: auto-generated
- References: <bug-19918-4717@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=19918
--- Comment #2 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Tom Tromey <tromey@sourceware.org>:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=b8c2339b2f46d4885b933b832fc5b37c7ca101a6
commit b8c2339b2f46d4885b933b832fc5b37c7ca101a6
Author: Tom Tromey <tom@tromey.com>
Date: Wed Feb 14 11:12:17 2018 -0700
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.
--
You are receiving this mail because:
You are on the CC list for the bug.