summaryrefslogtreecommitdiff
path: root/src/debug.c
diff options
context:
space:
mode:
authorSalvatore Sanfilippo <antirez@gmail.com>2018-05-24 16:16:12 +0200
committerGitHub <noreply@github.com>2018-05-24 16:16:12 +0200
commitb23a501135e573e285522d7f74982c3fb3fde2ab (patch)
treeb5dc6a19b71d3aa8aa935cd204cfd58703425e50 /src/debug.c
parent18b7f71130ca001f47d605f8e03a99cf1785d54f (diff)
parentc8ca71d40bc51e255457cd4374dd45ec9ebf8ae1 (diff)
downloadredis-b23a501135e573e285522d7f74982c3fb3fde2ab.tar.gz
Merge pull request #4099 from JunHe77/aarch64_stack_cflag
Fixed stack trace generation on aarch64
Diffstat (limited to 'src/debug.c')
-rw-r--r--src/debug.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/debug.c b/src/debug.c
index 293dbe36e..f239eea5a 100644
--- a/src/debug.c
+++ b/src/debug.c
@@ -688,6 +688,8 @@ static void *getMcontextEip(ucontext_t *uc) {
return (void*) uc->uc_mcontext.sc_ip;
#elif defined(__arm__) /* Linux ARM */
return (void*) uc->uc_mcontext.arm_pc;
+ #elif defined(__aarch64__) /* Linux AArch64 */
+ return (void*) uc->uc_mcontext.pc;
#endif
#else
return NULL;