summaryrefslogtreecommitdiff
path: root/absl/debugging
diff options
context:
space:
mode:
authorGravatar Derek Mauro <761129+derekmauro@users.noreply.github.com>2018-06-12 10:48:17 -0400
committerGravatar GitHub <noreply@github.com>2018-06-12 10:48:17 -0400
commite5be80532b5d998813f9db952d2cc5401b1532df (patch)
tree58a380fdc738d5b81680d8ea1af2379e5f1a08ba /absl/debugging
parent92020a042c0cd46979db9f6f0cb32783dc07765e (diff)
parentdefe5ed3cc75816c9c3c26f89e72fe67f78cb1f8 (diff)
Merge pull request #130 from mleporis/add_mips_getpc
Add MIPS support to GetProgramCounter()
Diffstat (limited to 'absl/debugging')
-rw-r--r--absl/debugging/internal/examine_stack.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/absl/debugging/internal/examine_stack.cc b/absl/debugging/internal/examine_stack.cc
index 261daae9..8434709f 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<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__)