Index: src/processor/exploitability_linux.cc |
=================================================================== |
--- src/processor/exploitability_linux.cc (revision 1464) |
+++ src/processor/exploitability_linux.cc (working copy) |
@@ -106,8 +106,15 @@ |
case MD_CONTEXT_AMD64: |
instruction_ptr = context->GetContextAMD64()->rip; |
break; |
+ case MD_CONTEXT_ARM: |
+ instruction_ptr = |
+ context->GetContextARM()->iregs[MD_CONTEXT_ARM_REG_PC]; |
+ break; |
+ case MD_CONTEXT_ARM64: |
+ instruction_ptr = |
+ context->GetContextARM64()->iregs[MD_CONTEXT_ARM64_REG_PC]; |
+ break; |
default: |
- // TODO(liuandrew): Add support ARM and arm64 architectures. |
BPLOG(INFO) << "Unsupported architecture."; |
return EXPLOITABILITY_ERR_PROCESSING; |
} |