This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Ada's formats
- From: Andrew Cagney <cagney at gnu dot org>
- To: Paul Hilfinger <hilfinger at cs dot berkeley dot edu>, Joel Brobecker <brobecker at gnat dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Thu, 08 Jul 2004 18:25:19 -0400
- Subject: Ada's formats
Joel, Paul, I'm looking at this:
#if 0
{"8#%lo#", "8#", "o", "#"}, /* Octal format info */
{"%ld", "", "d", ""}, /* Decimal format info */
{"16#%lx#", "16#", "x", "#"}, /* Hex format info */
#else
/* Copied from c-lang.c. */
{"0%lo", "0", "o", ""}, /* Octal format info */
{"%ld", "", "d", ""}, /* Decimal format info */
{"0x%lx", "0x", "x", ""}, /* Hex format info */
#endif
Would replacing the printf formats with ada specific functions similar
to paddr, paddr_nz et.al. or even a single function with multiple
parameters solve this problem?
Andrew