From: David Y. <dyo...@po...> - 2017-07-18 18:57:23
|
On Mon, Jun 12, 2017 at 05:32:49PM -0400, Ed Maste wrote: > On 8 June 2017 at 18:25, David Young <dyo...@po...> wrote: > > Are there elftoolchain-blessed format strings Dwarf_Off, Dwarf_Addr, > > etc? > > Not at the moment. Would you be able to enumerate the set of them > available in the other leading brand of libdwarf? Sure I can. On a second look, the set is not comprehensive. I would hope for a format string for Dwarf_Half, Dwarf_Addr, and Dwarf_Small. Here is what the other leading brand (OLB) provides: DW_PR_DUu: the target's decimal format string for Dwarf_Unsigned decimal DW_PR_DUx: hexadecimal Dwarf_Unsigned DW_PR_DSd: decimal Dwarf_Signed DW_PR_DSx: hexadecimal Dwarf_Signed DW_PR_XZEROS is also defined: the intention seems to be that you would printf("%" DW_PR_XZEROS DW_PR_DUx "\n", x), for x a Dwarf_Unsigned, to print it with 0 padding on the left. Sorry for the delayed response. Dave -- David Young dy...@po... Urbana, IL (217) 721-9981 |