[llvm-branch-commits] [libunwind] release/21.x: [libunwind] Fix aarch64 SEH unwinding with a debugger attached (#162867) (PR #163854)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Oct 16 13:00:42 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libunwind
Author: None (llvmbot)
<details>
<summary>Changes</summary>
Backport a17afee7ec41e53292f074fc967d264452e4363b
Requested by: @<!-- -->mstorsjo
---
Full diff: https://github.com/llvm/llvm-project/pull/163854.diff
1 Files Affected:
- (modified) libunwind/src/Unwind-seh.cpp (+2-1)
``````````diff
diff --git a/libunwind/src/Unwind-seh.cpp b/libunwind/src/Unwind-seh.cpp
index 8b83f10615f22..110c5987c3f1a 100644
--- a/libunwind/src/Unwind-seh.cpp
+++ b/libunwind/src/Unwind-seh.cpp
@@ -174,7 +174,8 @@ _GCC_specific_handler(PEXCEPTION_RECORD ms_exc, PVOID frame, PCONTEXT ms_ctx,
}
// FIXME: Indicate target frame in foreign case!
// phase 2: the clean up phase
- RtlUnwindEx(frame, (PVOID)disp->ControlPc, ms_exc, exc, ms_ctx, disp->HistoryTable);
+ RtlUnwindEx(frame, (PVOID)disp->ControlPc, ms_exc, exc, disp->ContextRecord,
+ disp->HistoryTable);
_LIBUNWIND_ABORT("RtlUnwindEx() failed");
case _URC_INSTALL_CONTEXT: {
// If we were called by __libunwind_seh_personality(), indicate that
``````````
</details>
https://github.com/llvm/llvm-project/pull/163854
More information about the llvm-branch-commits
mailing list