/* * context.h * * Created on: May 18, 2015 * Author: eric */ #ifndef CONTEXT_H_ #define CONTEXT_H_ #ifdef HAS_LINUX_USER_H #include #else #include #endif #include #include #ifdef __aarch64__ #include #endif #include #ifdef __i386__ typedef struct pt_regs CONTEXT_REGS; #endif #ifdef __x86_64__ typedef struct user_regs_struct CONTEXT_REGS; #endif #ifdef __arm__ typedef struct pt_regs CONTEXT_REGS; #endif #ifdef __aarch64__ typedef struct user_pt_regs CONTEXT_REGS; #endif typedef struct { CONTEXT_REGS regs; } CONTEXT, *PCONTEXT; int getRegisters(int tid, CONTEXT_REGS *registerstore); #endif /* CONTEXT_H_ */