Commit e5be8053 by Derek Mauro Committed by GitHub

Merge pull request #130 from mleporis/add_mips_getpc

Add MIPS support to GetProgramCounter()
parents 92020a04 defe5ed3
......@@ -46,6 +46,8 @@ void* GetProgramCounter(void* vuc) {
#elif defined(__i386__)
if (14 < ABSL_ARRAYSIZE(context->uc_mcontext.gregs))
return reinterpret_cast<void*>(context->uc_mcontext.gregs[14]);
#elif defined(__mips__)
return reinterpret_cast<void*>(context->uc_mcontext.pc);
#elif defined(__powerpc64__)
return reinterpret_cast<void*>(context->uc_mcontext.gp_regs[32]);
#elif defined(__powerpc__)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment