1234567891011121314151617181920212223242526 |
- #define SIGCONTEXT siginfo_t *_si, struct ucontext *
- #define SIGCONTEXT_EXTRA_ARGS _si,
- #define GET_PC(ctx) ((void *) (ctx)->uc_mcontext.gregs[REG_RIP])
- #define GET_FRAME(ctx) ((void *) (ctx)->uc_mcontext.gregs[REG_RBP])
- #define GET_STACK(ctx) ((void *) (ctx)->uc_mcontext.gregs[REG_RSP])
- #define CALL_SIGHANDLER(handler, signo, ctx) \
- (handler)((signo), SIGCONTEXT_EXTRA_ARGS (ctx))
|