diff options
| author | Roland McGrath <[email protected]> | 2009-07-06 17:57:33 -0700 |
|---|---|---|
| committer | Roland McGrath <[email protected]> | 2009-07-06 17:57:33 -0700 |
| commit | 46d5827cc232c689853b50181b17751aa7574128 (patch) | |
| tree | b7a6b2aad35335a0fd12afe33f2f03e4bacbd647 /src/readelf.c | |
| parent | c01442b3e28b41433fa30f533ee022fafe23e0e7 (diff) | |
Fix last change.
Diffstat (limited to 'src/readelf.c')
| -rw-r--r-- | src/readelf.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/readelf.c b/src/readelf.c index b990bfe1..c8bb2f08 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; } |
