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


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

Re: [patch] readelf.c - dump .eh_frame sections


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.

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