This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]