summaryrefslogtreecommitdiff
path: root/absl/debugging/internal/examine_stack.cc
diff options
context:
space:
mode:
authorGravatar SSE4 <tomskside@gmail.com>2021-01-29 02:04:45 +0700
committerGravatar GitHub <noreply@github.com>2021-01-28 14:04:45 -0500
commitaf39e133059928cfcdeea0592434720897f20173 (patch)
treede51ba73131a15972d6fb4220f1c928f2c096dc4 /absl/debugging/internal/examine_stack.cc
parente4e2e57e1a4308cf4ba008d9c1f2d478b3349201 (diff)
Add support for Elbrus 2000 (e2k) (#889)
Diffstat (limited to 'absl/debugging/internal/examine_stack.cc')
-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 6e5ff1fb..57913025 100644
--- a/absl/debugging/internal/examine_stack.cc
+++ b/absl/debugging/internal/examine_stack.cc
@@ -66,6 +66,8 @@ void* GetProgramCounter(void* vuc) {
#elif defined(__x86_64__)
if (16 < ABSL_ARRAYSIZE(context->uc_mcontext.gregs))
return reinterpret_cast<void*>(context->uc_mcontext.gregs[16]);
+#elif defined(__e2k__)
+ return reinterpret_cast<void*>(context->uc_mcontext.cr0_hi);
#else
#error "Undefined Architecture."
#endif