[patch] readelf.c - dump .eh_frame sections
Andrew Haley
aph@redhat.com
Thu Dec 7 10:25:00 GMT 2000
DJ Delorie writes:
>
> > On some targets the output of this dump is hard to read because it's
> > wider than any terminal: 300, 400 cols or so.
>
> What, you don't have a three-pixel-wide font? ;-)
>
> > I'm working on a patch that elides columns that aren't used. It's a
> > bit of a hack, but I'll tidy it up if anyone thinks it's needed in the
> > main code base. It does look much nicer: this
>
> I thought of doing this myself, but you almost have to scan the whole
> section twice to determine what columns can be removed (which would
> also change the max_reg logic). I also wanted to auto-size the
> columns based on the widest field.
Yeah. I first thought of calling the whole routine twice, once with
the output /dev/null, but that's kinda evil. However, it's maybe the
simplest and least likely to be buggy way to do it.
And something like this is necessary IMO.
Andrew.
More information about the Binutils
mailing list