1 --- src/debughelper.cpp 2016-10-11 22:02:43.000000000 +0200
2 +++ src/debughelper.cpp 2016-11-25 12:47:39.937086819 +0100
4 #define FRAME_FROM_UCONTEXT(context) (context)->uc_mcontext.gp_regs[31] //not always used
5 #define RETURNTO_FROM_UCONTEXT(context) (context)->uc_mcontext.gp_regs[34]
6 #elif defined(CPU_IS_ARM)
8 #define PC_FROM_UCONTEXT(context) (context)->uc_mcontext.arm_pc
9 #define STACK_FROM_UCONTEXT(context) (context)->uc_mcontext.arm_sp
10 #define FRAME_FROM_UCONTEXT(context) (context)->uc_mcontext.arm_fp
11 #define RETURNTO_FROM_UCONTEXT(context) (context)->uc_mcontext.arm_lr
14 #define PC_FROM_UCONTEXT(context) (context)->uc_mcontext.__gregs[_REG_R15]
15 #define STACK_FROM_UCONTEXT(context) (context)->uc_mcontext.__gregs[_REG_R13]
16 #define FRAME_FROM_UCONTEXT(context) (context)->uc_mcontext.__gregs[_REG_R11]
17 #define RETURNTO_FROM_UCONTEXT(context) (context)->uc_mcontext.__gregs[_REG_R14]
19 #elif defined(CPU_IS_IA64)
20 #define PC_FROM_UCONTEXT(context) (context)->_u._mc.sc_ip
21 #define STACK_FROM_UCONTEXT(context) (context)->_u._mc.sc_gr[12] //is that register 12?