[PATCH] fix readelf's display of ARM unwind section

Zach Welch zwelch@codesourcery.com
Tue Nov 30 22:16:00 GMT 2010


This patch fixes a minor display bug in readelf when dumping ARM unwind
sections, printing a comma missing from a list of registers.

Index: binutils-trunk/binutils/readelf.c
===================================================================
--- binutils-trunk/binutils/readelf.c   (revision 307746)
+++ binutils-trunk/binutils/readelf.c   (working copy)
@@ -6542,7 +6542,7 @@ decode_arm_unwind (struct arm_unw_aux_info *aux,
            }
          if (op & 0x08)
            {
-             if (first)
+             if (!first)
                printf (", ");
              printf ("r14");
            }


-- 
Zach Welch
CodeSourcery
zwelch@codesourcery.com
(650) 331-3385 x743



More information about the Binutils mailing list