mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-12-22 19:43:42 +01:00
Add multi-architecture support: include libunwind-common.h instead
of having a libunwind.h include the target-specific header. (Logical change 1.12)
This commit is contained in:
parent
4830286a5c
commit
1f3b87ad50
1 changed files with 10 additions and 0 deletions
|
@ -26,8 +26,14 @@ This exception does not however invalidate any other reasons why the
|
||||||
executable file might be covered by the GNU General Public
|
executable file might be covered by the GNU General Public
|
||||||
License. */
|
License. */
|
||||||
|
|
||||||
|
#ifndef LIBUNWIND_H
|
||||||
|
#define LIBUNWIND_H
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
#include <ucontext.h>
|
#include <ucontext.h>
|
||||||
|
|
||||||
|
#define UNW_TARGET ia64
|
||||||
|
|
||||||
typedef uint64_t unw_tdep_word_t;
|
typedef uint64_t unw_tdep_word_t;
|
||||||
|
|
||||||
typedef enum
|
typedef enum
|
||||||
|
@ -122,3 +128,7 @@ typedef ucontext_t unw_tdep_context_t;
|
||||||
#define unw_tdep_getcontext(uc) getcontext(uc)
|
#define unw_tdep_getcontext(uc) getcontext(uc)
|
||||||
|
|
||||||
#define unw_tdep_is_fpreg(r) ((unsigned) ((r) - UNW_IA64_FR) < 128)
|
#define unw_tdep_is_fpreg(r) ((unsigned) ((r) - UNW_IA64_FR) < 128)
|
||||||
|
|
||||||
|
#include "libunwind-common.h"
|
||||||
|
|
||||||
|
#endif /* LIBUNWIND_H */
|
||||||
|
|
Loading…
Reference in a new issue