Skip to content

Commit

Permalink
Fix remote unwinding on win-arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
am11 committed Dec 1, 2021
1 parent 2b894c6 commit abf6037
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/coreclr/pal/src/libunwind/libunwind-version.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ https://github.com/libunwind/libunwind/commit/b3ca1b59a795a617877c01fe5d299ab7a0
Replace CMakeLists.txt, src/CMakeLists.txt, configure.cmake with .NET custom version
Keep .NET oop directory
Reapply changes from https://github.com/dotnet/runtime/commit/1b5719c2e3dde393531eaeb5b5cde05dabeef5b8
Apply https://github.com/libunwind/libunwind/pull/317
2 changes: 1 addition & 1 deletion src/coreclr/pal/src/libunwind/src/aarch64/Gglobal.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ tdep_init (void)

dwarf_init ();

#ifndef UNW_REMOTE_ONLY
tdep_init_mem_validate ();

#ifndef UNW_REMOTE_ONLY
aarch64_local_addr_space_init ();
#endif
atomic_store(&tdep_init_done, 1); /* signal that we're initialized... */
Expand Down
3 changes: 2 additions & 1 deletion src/coreclr/pal/src/libunwind/src/riscv/Gglobal.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,10 @@ tdep_init (void)

mi_init ();
dwarf_init ();
tdep_init_mem_validate ();

#ifndef UNW_REMOTE_ONLY
tdep_init_mem_validate ();

riscv_local_addr_space_init ();
#endif
atomic_store(&tdep_init_done, 1); /* signal that we're initialized... */
Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/pal/src/libunwind/src/s390x/Gglobal.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ tdep_init (void)

dwarf_init ();

#ifndef UNW_REMOTE_ONLY
tdep_init_mem_validate ();

#ifndef UNW_REMOTE_ONLY
s390x_local_addr_space_init ();
#endif
atomic_store(&tdep_init_done, 1); /* signal that we're initialized... */
Expand Down
7 changes: 7 additions & 0 deletions src/coreclr/pal/src/libunwind/src/win/pal-single-threaded.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,10 @@ int fstat(int fd, struct stat *buf)
{
return 0;
}

#ifdef __aarch64__
void tdep_init_mem_validate (void)
{
// intentionally left blank
}
#endif

0 comments on commit abf6037

Please sign in to comment.