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:
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. */
|
expansion. */
|
||||||
#define DWARF_NUM_PRESERVED_REGS 17
|
#define DWARF_NUM_PRESERVED_REGS 17
|
||||||
|
|
||||||
|
#define DWARF_REGNUM_MAP_LENGTH 19
|
||||||
|
|
||||||
/* Return TRUE if the ADDR_SPACE uses big-endian byte-order. */
|
/* Return TRUE if the ADDR_SPACE uses big-endian byte-order. */
|
||||||
#define dwarf_is_big_endian(addr_space) 0
|
#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. */
|
unw_cursor_t. */
|
||||||
#define dwarf_to_cursor(c) ((unw_cursor_t *) (c))
|
#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
|
typedef struct dwarf_loc
|
||||||
{
|
{
|
||||||
unw_word_t val;
|
unw_word_t val;
|
||||||
|
|
Loading…
Add table
Reference in a new issue