Merge pull request #130 from mleporis/add_mips_getpc

Add MIPS support to GetProgramCounter()
lts_2018_06_20
Derek Mauro 7 years ago committed by GitHub
commit e5be80532b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      absl/debugging/internal/examine_stack.cc

@ -46,6 +46,8 @@ void* GetProgramCounter(void* vuc) {
#elif defined(__i386__) #elif defined(__i386__)
if (14 < ABSL_ARRAYSIZE(context->uc_mcontext.gregs)) if (14 < ABSL_ARRAYSIZE(context->uc_mcontext.gregs))
return reinterpret_cast<void*>(context->uc_mcontext.gregs[14]); return reinterpret_cast<void*>(context->uc_mcontext.gregs[14]);
#elif defined(__mips__)
return reinterpret_cast<void*>(context->uc_mcontext.pc);
#elif defined(__powerpc64__) #elif defined(__powerpc64__)
return reinterpret_cast<void*>(context->uc_mcontext.gp_regs[32]); return reinterpret_cast<void*>(context->uc_mcontext.gp_regs[32]);
#elif defined(__powerpc__) #elif defined(__powerpc__)

Loading…
Cancel
Save