Skip to content

Commit defe5ed

Browse files
committed
Add MIPS support to GetProgramCounter()
Change adds __mips__ case to the GetProgramCounter function in abseil. Chromium bug: 850029
1 parent 92020a0 commit defe5ed

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

absl/debugging/internal/examine_stack.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ void* GetProgramCounter(void* vuc) {
4646
#elif defined(__i386__)
4747
if (14 < ABSL_ARRAYSIZE(context->uc_mcontext.gregs))
4848
return reinterpret_cast<void*>(context->uc_mcontext.gregs[14]);
49+
#elif defined(__mips__)
50+
return reinterpret_cast<void*>(context->uc_mcontext.pc);
4951
#elif defined(__powerpc64__)
5052
return reinterpret_cast<void*>(context->uc_mcontext.gp_regs[32]);
5153
#elif defined(__powerpc__)

0 commit comments

Comments
 (0)