Add MIPS support to GetProgramCounter()

Change adds __mips__ case to the GetProgramCounter function in abseil.

Chromium bug: 850029
This commit is contained in:
Milko Leporis 2018-06-12 10:53:52 +02:00
parent 92020a042c
commit defe5ed3cc

View file

@ -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__)