]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Fix last change.
authorRoland McGrath <roland@redhat.com>
Tue, 7 Jul 2009 00:57:33 +0000 (17:57 -0700)
committerRoland McGrath <roland@redhat.com>
Tue, 7 Jul 2009 00:57:33 +0000 (17:57 -0700)
src/readelf.c

index b990bfe130fb27d08b52b5441019ed9f7175a2cd..c8bb2f08ec32174234ed3d17a1994e6bae3a5025 100644 (file)
@@ -4332,7 +4332,15 @@ register_info (Ebl *ebl, unsigned int regno, const Ebl_Register_Location *loc,
        *bits = loc->bits;
       if (type != NULL)
        *type = DW_ATE_unsigned;
-      set = "??? unrecognized registers";
+      set = "??? unrecognized";
+    }
+  else
+    {
+      if (bits != NULL && *bits <= 0)
+       *bits = loc->bits;
+      if (type != NULL && *type == DW_ATE_void)
+       *type = DW_ATE_unsigned;
+
     }
   return set;
 }