]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* readelf.c (process_unwind): Do not return the result of a void
authorNick Clifton <nickc@redhat.com>
Thu, 18 Jul 2013 10:57:23 +0000 (10:57 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 18 Jul 2013 10:57:23 +0000 (10:57 +0000)
function.

binutils/ChangeLog
binutils/readelf.c

index 3b36bc783fa6be3ba1810ef2a2099f04cfd229a7..255fc4778e6bff8adf53ecde5da6f2cfcc20393e 100644 (file)
@@ -1,3 +1,8 @@
+2013-07-18  Nick Clifton  <nickc@redhat.com>
+
+       * readelf.c (process_unwind): Do not return the result of a void
+       function.
+
 2013-07-15  Maciej W. Rozycki  <macro@codesourcery.com>
 
        * readelf.c (display_mips_gnu_attribute): Replace hardcoded magic
index 16fec127c028549983c6ad74b1024868c928c646..c4a59821410524dd5491f124230cb2898a922635 100644 (file)
@@ -7491,7 +7491,10 @@ process_unwind (FILE * file)
 
   for (i = 0; handlers[i].handler != NULL; i++)
     if (elf_header.e_machine == handlers[i].machtype)
-      return handlers[i].handler (file);
+      {
+       handlers[i].handler (file);
+       return;
+      }
 
   printf (_("\nThe decoding of unwind sections for machine type %s is not currently supported.\n"),
          get_machine_name (elf_header.e_machine));