Skip to content

Commit

Permalink
ARM64 unix stack walk
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfKornmannEnvision committed Aug 4, 2020
1 parent 39c6ceb commit 6c9e235
Show file tree
Hide file tree
Showing 3 changed files with 166 additions and 107 deletions.
4 changes: 2 additions & 2 deletions src/Native/Runtime/unix/UnixContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ bool GetUnwindProcInfo(PCODE ip, unw_proc_info_t *procInfo)
#elif HOST_ARM
((uint32_t*)(unwContext.data))[15] = ip;
#elif HOST_ARM64
((uint32_t*)(unwContext.data))[32] = ip;
unwContext.data[32] = ip;
#elif HOST_WASM
ASSERT(false);
#elif HOST_X86
Expand Down Expand Up @@ -618,7 +618,7 @@ bool FindProcInfo(UIntNative controlPC, UIntNative* startAddress, UIntNative* ls

assert((procInfo.start_ip <= controlPC) && (controlPC < procInfo.end_ip));

#if defined(HOST_ARM) || defined(HOST_ARM64)
#if defined(HOST_ARM)
// libunwind fills by reference not by value for ARM
*lsda = *((UIntNative *)procInfo.lsda);
#else
Expand Down
Loading

0 comments on commit 6c9e235

Please sign in to comment.