From: Roland McGrath Date: Tue, 7 Jul 2009 00:57:33 +0000 (-0700) Subject: Fix last change. X-Git-Tag: elfutils-0.142~24 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=46d5827cc232c689853b50181b17751aa7574128;p=thirdparty%2Felfutils.git Fix last change. --- diff --git a/src/readelf.c b/src/readelf.c index b990bfe13..c8bb2f08e 100644 --- a/src/readelf.c +++ b/src/readelf.c @@ -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; }