mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-12-04 04:07: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:
parent
271d7065c2
commit
2e65e639a5
1 changed files with 4 additions and 4 deletions
|
@ -86,7 +86,7 @@ ia64_getfp (struct cursor *c, unw_word_t loc, unw_fpreg_t *val)
|
||||||
if (!loc)
|
if (!loc)
|
||||||
{
|
{
|
||||||
debug (150, "%s: access to unsaved register\n", __FUNCTION__);
|
debug (150, "%s: access to unsaved register\n", __FUNCTION__);
|
||||||
return -1;
|
return -UNW_EBADREG;
|
||||||
}
|
}
|
||||||
*val = *(unw_fpreg_t *) IA64_MASK_LOC_TYPE(loc);
|
*val = *(unw_fpreg_t *) IA64_MASK_LOC_TYPE(loc);
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -98,7 +98,7 @@ ia64_putfp (struct cursor *c, unw_word_t loc, unw_fpreg_t val)
|
||||||
if (!loc)
|
if (!loc)
|
||||||
{
|
{
|
||||||
debug (150, "%s: access to unsaved register\n", __FUNCTION__);
|
debug (150, "%s: access to unsaved register\n", __FUNCTION__);
|
||||||
return -1;
|
return -UNW_EBADREG;
|
||||||
}
|
}
|
||||||
*(unw_fpreg_t *) IA64_MASK_LOC_TYPE(loc) = val;
|
*(unw_fpreg_t *) IA64_MASK_LOC_TYPE(loc) = val;
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -110,7 +110,7 @@ ia64_get (struct cursor *c, unw_word_t loc, unw_word_t *val)
|
||||||
if (!loc)
|
if (!loc)
|
||||||
{
|
{
|
||||||
debug (150, "%s: access to unsaved register\n", __FUNCTION__);
|
debug (150, "%s: access to unsaved register\n", __FUNCTION__);
|
||||||
return -1;
|
return -UNW_EBADREG;
|
||||||
}
|
}
|
||||||
*val = *(unw_word_t *) IA64_MASK_LOC_TYPE(loc);
|
*val = *(unw_word_t *) IA64_MASK_LOC_TYPE(loc);
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -122,7 +122,7 @@ ia64_put (struct cursor *c, unw_word_t loc, unw_word_t val)
|
||||||
if (!loc)
|
if (!loc)
|
||||||
{
|
{
|
||||||
debug (150, "%s: access to unsaved register\n", __FUNCTION__);
|
debug (150, "%s: access to unsaved register\n", __FUNCTION__);
|
||||||
return -1;
|
return -UNW_EBADREG;
|
||||||
}
|
}
|
||||||
*(unw_word_t *) IA64_MASK_LOC_TYPE(loc) = (val);
|
*(unw_word_t *) IA64_MASK_LOC_TYPE(loc) = (val);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue