From defe5ed3cc75816c9c3c26f89e72fe67f78cb1f8 Mon Sep 17 00:00:00 2001 From: Milko Leporis Date: Tue, 12 Jun 2018 10:53:52 +0200 Subject: Add MIPS support to GetProgramCounter() Change adds __mips__ case to the GetProgramCounter function in abseil. Chromium bug: 850029 --- absl/debugging/internal/examine_stack.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'absl') diff --git a/absl/debugging/internal/examine_stack.cc b/absl/debugging/internal/examine_stack.cc index 261daae932f1..8434709facc6 100644 --- a/absl/debugging/internal/examine_stack.cc +++ b/absl/debugging/internal/examine_stack.cc @@ -46,6 +46,8 @@ void* GetProgramCounter(void* vuc) { #elif defined(__i386__) if (14 < ABSL_ARRAYSIZE(context->uc_mcontext.gregs)) return reinterpret_cast(context->uc_mcontext.gregs[14]); +#elif defined(__mips__) + return reinterpret_cast(context->uc_mcontext.pc); #elif defined(__powerpc64__) return reinterpret_cast(context->uc_mcontext.gp_regs[32]); #elif defined(__powerpc__) -- cgit 1.4.1