mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Merge pull request #1629 from xiaobo55x:fault_test
PiperOrigin-RevId: 291022423
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user