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]
Other format: [Raw text]

[PATCH] readelf -x


Obvious patch.  DEL characters should not be displayed.

Please install, if approved.


Segher




2003-10-26  Segher Boessenkool  <segher@kernel.crashing.org>

	* readelf.c (dump_section): Don't display DEL characters.




*** readelf.c~	Sun Oct 26 15:58:44 2003
--- readelf.c	Sun Oct 26 16:01:40 2003
*************** dump_section (section, file)
*** 6028,6034 ****
        for (j = 0; j < lbytes; j++)
  	{
  	  k = data [j];
! 	  if (k >= ' ' && k < 0x80)
  	    printf ("%c", k);
  	  else
  	    printf (".");
--- 6028,6034 ----
        for (j = 0; j < lbytes; j++)
  	{
  	  k = data [j];
! 	  if (k >= ' ' && k < 0x7f)
  	    printf ("%c", k);
  	  else
  	    printf (".");


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