mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2025-04-05 21:32:17 +02:00
(ia64_getfp): Print debug message when accessing an unsaved register.
(ia64_putfp): Ditto. (ia64_get): Ditto. (ia64_put): Ditto. (ia64_local_addr_space_init): Add missing declaration. (Logical change 1.59)
This commit is contained in:
parent
d3ec5e94aa
commit
fe0ed7dd41
1 changed files with 17 additions and 4 deletions
|
@ -84,7 +84,10 @@ static inline int
|
||||||
ia64_getfp (struct cursor *c, unw_word_t loc, unw_fpreg_t *val)
|
ia64_getfp (struct cursor *c, unw_word_t loc, unw_fpreg_t *val)
|
||||||
{
|
{
|
||||||
if (!loc)
|
if (!loc)
|
||||||
return -1;
|
{
|
||||||
|
debug (150, "%s: access to unsaved register\n", __FUNCTION__);
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
*val = *(unw_fpreg_t *) IA64_MASK_LOC_TYPE(loc);
|
*val = *(unw_fpreg_t *) IA64_MASK_LOC_TYPE(loc);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -93,7 +96,10 @@ static inline int
|
||||||
ia64_putfp (struct cursor *c, unw_word_t loc, unw_fpreg_t val)
|
ia64_putfp (struct cursor *c, unw_word_t loc, unw_fpreg_t val)
|
||||||
{
|
{
|
||||||
if (!loc)
|
if (!loc)
|
||||||
return -1;
|
{
|
||||||
|
debug (150, "%s: access to unsaved register\n", __FUNCTION__);
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
*(unw_fpreg_t *) IA64_MASK_LOC_TYPE(loc) = val;
|
*(unw_fpreg_t *) IA64_MASK_LOC_TYPE(loc) = val;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -102,7 +108,10 @@ static inline int
|
||||||
ia64_get (struct cursor *c, unw_word_t loc, unw_word_t *val)
|
ia64_get (struct cursor *c, unw_word_t loc, unw_word_t *val)
|
||||||
{
|
{
|
||||||
if (!loc)
|
if (!loc)
|
||||||
return -1;
|
{
|
||||||
|
debug (150, "%s: access to unsaved register\n", __FUNCTION__);
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
*val = *(unw_word_t *) IA64_MASK_LOC_TYPE(loc);
|
*val = *(unw_word_t *) IA64_MASK_LOC_TYPE(loc);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -111,7 +120,10 @@ static inline int
|
||||||
ia64_put (struct cursor *c, unw_word_t loc, unw_word_t val)
|
ia64_put (struct cursor *c, unw_word_t loc, unw_word_t val)
|
||||||
{
|
{
|
||||||
if (!loc)
|
if (!loc)
|
||||||
return -1;
|
{
|
||||||
|
debug (150, "%s: access to unsaved register\n", __FUNCTION__);
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
*(unw_word_t *) IA64_MASK_LOC_TYPE(loc) = (val);
|
*(unw_word_t *) IA64_MASK_LOC_TYPE(loc) = (val);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -320,6 +332,7 @@ extern int ia64_create_state_record (struct cursor *c,
|
||||||
extern int ia64_free_state_record (struct ia64_state_record *sr);
|
extern int ia64_free_state_record (struct ia64_state_record *sr);
|
||||||
extern int ia64_find_save_locs (struct cursor *c);
|
extern int ia64_find_save_locs (struct cursor *c);
|
||||||
extern void ia64_script_cache_init (struct ia64_script_cache *cache);
|
extern void ia64_script_cache_init (struct ia64_script_cache *cache);
|
||||||
|
extern void ia64_local_addr_space_init (void);
|
||||||
extern void ia64_init (void);
|
extern void ia64_init (void);
|
||||||
extern int ia64_access_reg (struct cursor *c, unw_regnum_t reg,
|
extern int ia64_access_reg (struct cursor *c, unw_regnum_t reg,
|
||||||
unw_word_t *valp, int write);
|
unw_word_t *valp, int write);
|
||||||
|
|
Loading…
Add table
Reference in a new issue