From 48da72afd7da7dc46b78a2497edc1e147dc2b61d Mon Sep 17 00:00:00 2001 From: "hp.com!davidm" Date: Wed, 3 Apr 2002 06:51:34 +0000 Subject: [PATCH] (unw_save_loc_t): New member "extra" to hold arch-specific save-location info. (unw_get_save_loc): Define. (Logical change 1.10) --- include/libunwind.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/libunwind.h b/include/libunwind.h index 47a13de7..c5aaf0ea 100644 --- a/include/libunwind.h +++ b/include/libunwind.h @@ -146,7 +146,7 @@ typedef enum unw_save_loc_type { UNW_SLT_NONE, /* register is not saved ("not an l-value") */ UNW_SLT_MEMORY, /* register has been saved in memory */ - UNW_SLT_REG, /* register has been saved in (another) register */ + UNW_SLT_REG /* register has been saved in (another) register */ } unw_save_loc_type_t; @@ -159,6 +159,7 @@ typedef struct unw_save_loc unw_regnum_t regnum; /* valid if type==UNW_SLT_REG */ } u; + unw_tdep_save_loc_t extra; /* target-dependent additional information */ } unw_save_loc_t; @@ -204,6 +205,8 @@ extern int UNW_OBJ(is_signal_frame) (unw_cursor_t *c); #define unw_get_fpreg(c,r,v) UNW_OBJ(get_fpreg)(c,r,v) #define unw_set_fpreg(c,r,v) UNW_OBJ(set_fpreg)(c,r,v) +#define unw_get_save_loc(c,r,l) UNW_OBJ(get_save_loc)(c,r,l) + /* Returns non-zero value if the cursor points to a signal frame. */ #define unw_is_signal_frame(c) UNW_OBJ(is_signal_frame)(c)