Merge pull request #1629 from xiaobo55x:fault_test

PiperOrigin-RevId: 291022423
This commit is contained in:
gVisor bot
2020-01-22 13:51:13 -08:00
+3
View File
@@ -37,6 +37,9 @@ int GetPcFromUcontext(ucontext_t* uc, uintptr_t* pc) {
#elif defined(__i386__)
*pc = uc->uc_mcontext.gregs[REG_EIP];
return 1;
#elif defined(__aarch64__)
*pc = uc->uc_mcontext.pc;
return 1;
#else
return 0;
#endif