mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2025-03-29 18:02:17 +01: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:
parent
410e47882d
commit
107cf10470
1 changed files with 2 additions and 10 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue