Improvements to the output of readelf -wline

Mark Wielaard mjw at redhat.com
Fri Mar 25 13:10:53 UTC 2011


On Thu, 2011-03-24 at 14:37 +0100, Petr Machata wrote:
> I'd like to make -wline output more regular and useful.  Currently lines
> describing opcodes are formatted inconsistently either with or without
> initial space.  That's probably an aesthetic nit, I don't think that
> there is a pattern to it.
> 
> Second, more important change is that I'd like to prefix opcode lines
> with their offset.  This should aid debugging and reviewing dwarflint
> citations.

Changes look good to me. Indeed more consistent and more useful.
But it would be even more consistent if the offsets were printed as in
the .debug_info section. So using "%6zx" to make them all the same
width.

> Both changes are on the branch pmachata/readelf.

BTW. I still prefer seeing patches on the list whenever possible.

Thanks,

Mark



More information about the elfutils-devel mailing list