From fe0ed7dd4181e1af0c7a45238262481e1d739dde Mon Sep 17 00:00:00 2001 From: "mostang.com!davidm" Date: Thu, 6 Mar 2003 06:14:36 +0000 Subject: [PATCH] (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) --- src/ia64/unwind_i.h | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/src/ia64/unwind_i.h b/src/ia64/unwind_i.h index cce8afa0..1c3023e0 100644 --- a/src/ia64/unwind_i.h +++ b/src/ia64/unwind_i.h @@ -84,7 +84,10 @@ static inline int ia64_getfp (struct cursor *c, unw_word_t loc, unw_fpreg_t *val) { if (!loc) - return -1; + { + debug (150, "%s: access to unsaved register\n", __FUNCTION__); + return -1; + } *val = *(unw_fpreg_t *) IA64_MASK_LOC_TYPE(loc); return 0; } @@ -93,7 +96,10 @@ static inline int ia64_putfp (struct cursor *c, unw_word_t loc, unw_fpreg_t val) { if (!loc) - return -1; + { + debug (150, "%s: access to unsaved register\n", __FUNCTION__); + return -1; + } *(unw_fpreg_t *) IA64_MASK_LOC_TYPE(loc) = val; return 0; } @@ -102,7 +108,10 @@ static inline int ia64_get (struct cursor *c, unw_word_t loc, unw_word_t *val) { if (!loc) - return -1; + { + debug (150, "%s: access to unsaved register\n", __FUNCTION__); + return -1; + } *val = *(unw_word_t *) IA64_MASK_LOC_TYPE(loc); return 0; } @@ -111,7 +120,10 @@ static inline int ia64_put (struct cursor *c, unw_word_t loc, unw_word_t val) { if (!loc) - return -1; + { + debug (150, "%s: access to unsaved register\n", __FUNCTION__); + return -1; + } *(unw_word_t *) IA64_MASK_LOC_TYPE(loc) = (val); 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_find_save_locs (struct cursor *c); 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 int ia64_access_reg (struct cursor *c, unw_regnum_t reg, unw_word_t *valp, int write);