mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2025-02-16 18:21:41 +01:00
Jump buffer indices for FreeBSD/x86.
This commit is contained in:
parent
a6b23dcb0c
commit
bdee34d766
1 changed files with 12 additions and 0 deletions
|
@ -25,7 +25,19 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
|||
|
||||
/* Use glibc's jump-buffer indices; NPTL peeks at SP: */
|
||||
|
||||
#if defined __linux__
|
||||
|
||||
#define JB_SP 4
|
||||
#define JB_RP 5
|
||||
#define JB_MASK_SAVED 6
|
||||
#define JB_MASK 7
|
||||
|
||||
#elif defined __FreeBSD__
|
||||
|
||||
#define JB_SP 1
|
||||
#define JB_RP 0
|
||||
/* Pretend the ip cannot be 0 and mask is always saved */
|
||||
#define JB_MASK_SAVED 0
|
||||
#define JB_MASK 7
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue