From f3697b4fedc2d8f2311eaaebed051f6a44182bb2 Mon Sep 17 00:00:00 2001 From: John Paul Adrian Glaubitz Date: Fri, 19 Feb 2021 02:09:17 +0100 Subject: Add support for m68k (#900) Fixes #895 --- absl/debugging/internal/examine_stack.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'absl/debugging/internal/examine_stack.cc') diff --git a/absl/debugging/internal/examine_stack.cc b/absl/debugging/internal/examine_stack.cc index 299a107b..c9fcb1f4 100644 --- a/absl/debugging/internal/examine_stack.cc +++ b/absl/debugging/internal/examine_stack.cc @@ -51,6 +51,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(__m68k__) + return reinterpret_cast(context->uc_mcontext.gregs[16]); #elif defined(__mips__) return reinterpret_cast(context->uc_mcontext.pc); #elif defined(__powerpc64__) -- cgit v1.2.3