mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-12-24 04:13:41 +01:00
(rotate_gr): When rotating an out-of-frame register, return the original register
number, not -1. Otherwise, the wrong error gets propagated to the user. (Logical change 1.43)
This commit is contained in:
parent
74ee8e48f0
commit
e1e36dfdf6
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ rotate_gr (struct cursor *c, int reg)
|
|||
rrb_gr = (c->cfm >> 18) & 0x7f;
|
||||
|
||||
if ((unsigned) (reg - 32) > sof)
|
||||
return -1; /* not a valid stacked register number */
|
||||
return reg; /* not a valid stacked register: just return original value */
|
||||
else if ((unsigned) (reg - 32) > sor)
|
||||
preg = reg; /* register not part of the rotating partition */
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue