diff options
author | Mateusz Moscicki/System (PLT) /SRPOL/Engineer/Samsung Electronics <m.moscicki2@samsung.com> | 2021-11-21 22:15:30 +0100 |
---|---|---|
committer | GitHub Enterprise <noreply-CODE@samsung.com> | 2021-11-22 06:15:30 +0900 |
commit | 2fb18530f7d35e8e8bd4aaf2b549f246d06b3c45 (patch) | |
tree | 9c92abe6d9a737b520e4d3e602ed809e18975cbd | |
parent | 714eb50bc0018c98e19ff6bd9f31017fd07eedbe (diff) | |
download | coreclr-accepted/tizen/unified/20211122.122534.tar.gz coreclr-accepted/tizen/unified/20211122.122534.tar.bz2 coreclr-accepted/tizen/unified/20211122.122534.zip |
[Tizen] Add support for aarch64 for coredumps created by minicoredumper (#327)submit/tizen_6.5/20211121.211854submit/tizen/20211121.211701accepted/tizen/unified/20211122.122534accepted/tizen/6.5/unified/20211122.213410
Co-authored-by: Mateusz Moscicki <m.moscicki2@partner.samsung.com>
-rw-r--r-- | src/debug/createdump/threadinfo.cpp | 6 |
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 } |