Chromium Code Reviews| Index: src/processor/exploitability_linux.cc |
| =================================================================== |
| --- src/processor/exploitability_linux.cc (revision 1464) |
| +++ src/processor/exploitability_linux.cc (working copy) |
| @@ -106,8 +106,13 @@ |
| 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]; |
|
ivanpe
2015/06/30 01:05:08
Please, keep lines shorter than 80 characters.
liuandrew
2015/06/30 16:14:17
Done.
|
| + break; |
| default: |
| - // TODO(liuandrew): Add support ARM and arm64 architectures. |
| BPLOG(INFO) << "Unsupported architecture."; |
| return EXPLOITABILITY_ERR_PROCESSING; |
| } |