1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-06-26 19:31:45 +02: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:
hp.com!davidm 2003-01-28 03:40:06 +00:00
parent 74ee8e48f0
commit e1e36dfdf6

View file

@ -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