This commit is contained in:
λP.(P izzy) 2024-09-18 01:14:56 -03:00 committed by GitHub
commit 8f499819ae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -82,6 +82,8 @@
#define CONTEXT_PC uc_mcontext.mc_rip #define CONTEXT_PC uc_mcontext.mc_rip
#elif defined(__NetBSD__) #elif defined(__NetBSD__)
#define CONTEXT_PC uc_mcontext.__gregs[_REG_RIP] #define CONTEXT_PC uc_mcontext.__gregs[_REG_RIP]
#elif defined(_OpenBSD__)
#define CONTEXT_PC sc_rip
#endif #endif
#elif defined(__aarch64__) #elif defined(__aarch64__)
#if defined(_WIN32) #if defined(_WIN32)
@ -94,6 +96,8 @@
#define CONTEXT_PC uc_mcontext.mc_gpregs.gp_elr #define CONTEXT_PC uc_mcontext.mc_gpregs.gp_elr
#elif defined(__NetBSD__) #elif defined(__NetBSD__)
#define CONTEXT_PC uc_mcontext.__gregs[_REG_PC] #define CONTEXT_PC uc_mcontext.__gregs[_REG_PC]
#elif defined(_OpenBSD__)
#define CONTEXT_PC sc_exr
#endif #endif
#endif #endif