1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-12-03 11:47:39 +01:00

(ia64_getfp): Return -UNW_EBADREG when trying to access unsaved register.

(ia64_putfp): Ditto.
(ia64_get): Ditto.
(ia64_put): Ditto.

(Logical change 1.70)
This commit is contained in:
mostang.com!davidm 2003-03-28 07:43:22 +00:00
parent 271d7065c2
commit 2e65e639a5

View file

@ -86,7 +86,7 @@ ia64_getfp (struct cursor *c, unw_word_t loc, unw_fpreg_t *val)
if (!loc)
{
debug (150, "%s: access to unsaved register\n", __FUNCTION__);
return -1;
return -UNW_EBADREG;
}
*val = *(unw_fpreg_t *) IA64_MASK_LOC_TYPE(loc);
return 0;
@ -98,7 +98,7 @@ ia64_putfp (struct cursor *c, unw_word_t loc, unw_fpreg_t val)
if (!loc)
{
debug (150, "%s: access to unsaved register\n", __FUNCTION__);
return -1;
return -UNW_EBADREG;
}
*(unw_fpreg_t *) IA64_MASK_LOC_TYPE(loc) = val;
return 0;
@ -110,7 +110,7 @@ ia64_get (struct cursor *c, unw_word_t loc, unw_word_t *val)
if (!loc)
{
debug (150, "%s: access to unsaved register\n", __FUNCTION__);
return -1;
return -UNW_EBADREG;
}
*val = *(unw_word_t *) IA64_MASK_LOC_TYPE(loc);
return 0;
@ -122,7 +122,7 @@ ia64_put (struct cursor *c, unw_word_t loc, unw_word_t val)
if (!loc)
{
debug (150, "%s: access to unsaved register\n", __FUNCTION__);
return -1;
return -UNW_EBADREG;
}
*(unw_word_t *) IA64_MASK_LOC_TYPE(loc) = (val);
return 0;