On Mon, Jun 12, 2017 at 05:32:49PM -0400, Ed Maste wrote:
> On 8 June 2017 at 18:25, David Young <dyoung+elftoolch...@pobox.com> 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
dyo...@pobox.com    Urbana, IL    (217) 721-9981

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Elftoolchain-developers mailing list
Elftoolchain-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/elftoolchain-developers

Reply via email to