summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateusz Moscicki/System (PLT) /SRPOL/Engineer/Samsung Electronics <m.moscicki2@samsung.com>2021-11-21 22:15:30 +0100
committerGitHub Enterprise <noreply-CODE@samsung.com>2021-11-22 06:15:30 +0900
commit2fb18530f7d35e8e8bd4aaf2b549f246d06b3c45 (patch)
tree9c92abe6d9a737b520e4d3e602ed809e18975cbd
parent714eb50bc0018c98e19ff6bd9f31017fd07eedbe (diff)
downloadcoreclr-accepted/tizen/unified/20211122.122534.tar.gz
coreclr-accepted/tizen/unified/20211122.122534.tar.bz2
coreclr-accepted/tizen/unified/20211122.122534.zip
Co-authored-by: Mateusz Moscicki <m.moscicki2@partner.samsung.com>
-rw-r--r--src/debug/createdump/threadinfo.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/debug/createdump/threadinfo.cpp b/src/debug/createdump/threadinfo.cpp
index 685f9e64c0..55d1df947e 100644
--- a/src/debug/createdump/threadinfo.cpp
+++ b/src/debug/createdump/threadinfo.cpp
@@ -322,6 +322,12 @@ void ThreadInfo::SetRegisters(elf_prstatus *prstatus)
m_gpRegisters.ARM_r10 = u_reg->uregs[10];
m_gpRegisters.ARM_fp = u_reg->uregs[REG_FP];
m_gpRegisters.ARM_ip = u_reg->uregs[REG_IP];
+#elif defined(__aarch64__)
+ struct user_regs_struct *u_reg = (struct user_regs_struct *)&prstatus->pr_reg;
+ memcpy(m_gpRegisters.regs, u_reg, sizeof(m_gpRegisters.regs));
+ m_gpRegisters.sp = u_reg->sp;
+ m_gpRegisters.pc = u_reg->pc;
+ m_gpRegisters.pstate = u_reg->pstate;
#endif
}