diff options
author | Sergey Ignatov <sergign60@mail.ru> | 2017-11-07 18:41:25 +0300 |
---|---|---|
committer | Sergey Ignatov <sergign60@mail.ru> | 2017-11-07 18:41:25 +0300 |
commit | fcb3aa0da729c9d8a8b5909a0556f0201321d541 (patch) | |
tree | 1f43b83ba4c5d0e9e7d5f2b834fde63b173a4b20 /src/Native/Runtime/unix | |
parent | aad4c551757b6238addbf0502e9ce56ca654016a (diff) |
[armel] fixed PC passing to unwind
Diffstat (limited to 'src/Native/Runtime/unix')
-rw-r--r-- | src/Native/Runtime/unix/UnixContext.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Native/Runtime/unix/UnixContext.cpp b/src/Native/Runtime/unix/UnixContext.cpp index 8b9c5c1b3..0fdbc23ca 100644 --- a/src/Native/Runtime/unix/UnixContext.cpp +++ b/src/Native/Runtime/unix/UnixContext.cpp @@ -254,7 +254,7 @@ bool GetUnwindProcInfo(PCODE ip, unw_proc_info_t *procInfo) // LSDA and other information without initializing an unwind cursor. unwContext.data[16] = ip; #elif _ARM_ - unwContext.data[15] = ip; + ((uint32_t*)(unwContext.data))[15] = ip; #else #error "GetUnwindProcInfo is not supported on this arch yet." #endif @@ -293,7 +293,7 @@ bool InitializeUnwindContextAndCursor(REGDISPLAY* regDisplay, unw_cursor_t* curs #ifdef _AMD64_ unwContext->data[16] = regDisplay->IP; #elif _ARM_ - unwContext.data[15] = regDisplay->IP; + ((uint32_t*)(unwContext->data))[15] = regDisplay->IP; #else #error "InitializeUnwindContextAndCursor is not supported on this arch yet." #endif |