diff options
author | WorksButNotTested <62701594+WorksButNotTested@users.noreply.github.com> | 2021-06-08 08:55:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-08 09:55:12 +0200 |
commit | c7b9171c103fc80da75d2b9648b62aa87cbe76fd (patch) | |
tree | f66ce81c3812c1ce6f03aeb23f5a0956b19d517a /frida_mode/include/ctx.h | |
parent | cd95dfe1e70d5fe3d33a5fed26565a407688568a (diff) | |
download | afl++-c7b9171c103fc80da75d2b9648b62aa87cbe76fd.tar.gz |
FRIDA AARCH64 support (#965)
Co-authored-by: Your Name <you@example.com>
Diffstat (limited to 'frida_mode/include/ctx.h')
-rw-r--r-- | frida_mode/include/ctx.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/frida_mode/include/ctx.h b/frida_mode/include/ctx.h index cbcc892a..67274aee 100644 --- a/frida_mode/include/ctx.h +++ b/frida_mode/include/ctx.h @@ -3,8 +3,15 @@ #include "frida-gum.h" -#if defined(__x86_64__) || defined(__i386__) -gsize ctx_read_reg(GumCpuContext *ctx, x86_reg reg); +#if defined(__x86_64__) +gsize ctx_read_reg(GumX64CpuContext *ctx, x86_reg reg); +#elif defined(__i386__) +gsize ctx_read_reg(GumIA32CpuContext *ctx, x86_reg reg); +#elif defined(__aarch64__) +gsize ctx_read_reg(GumArm64CpuContext *ctx, arm64_reg reg); +size_t ctx_get_size(const cs_insn *instr, cs_arm64_op *operand); +#elif defined(__arm__) +gsize ctx_read_reg(GumArmCpuContext *ctx, arm_reg reg); #endif #endif |