1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2025-04-01 20:02:17 +02:00

(DWARF_REGNUM_MAP_LENGTH): New macro.

(dwarf_to_unw_regnum_map): Move to dwarf_i.h.
(dwarf_to_unw_regnum): Likewise.

(Logical change 1.162)
This commit is contained in:
hp.com!davidm 2004-01-30 00:01:24 +00:00
parent 410e47882d
commit 107cf10470

View file

@ -30,6 +30,8 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
expansion. */
#define DWARF_NUM_PRESERVED_REGS 17
#define DWARF_REGNUM_MAP_LENGTH 19
/* Return TRUE if the ADDR_SPACE uses big-endian byte-order. */
#define dwarf_is_big_endian(addr_space) 0
@ -37,16 +39,6 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
unw_cursor_t. */
#define dwarf_to_cursor(c) ((unw_cursor_t *) (c))
extern uint8_t dwarf_to_unw_regnum_map[19];
static inline unw_regnum_t
dwarf_to_unw_regnum (unw_word_t regnum)
{
if (regnum <= NELEMS (dwarf_to_unw_regnum_map))
return dwarf_to_unw_regnum_map[regnum];
return 0;
}
typedef struct dwarf_loc
{
unw_word_t val;