Skip to content

Commit 53bd144

Browse files
committed
WIP: Apply a patch on llvm-project
1 parent c17a777 commit 53bd144

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

build-llvm.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ if [ -n "$SYNC" ] || [ -n "$CHECKOUT" ]; then
152152
;;
153153
esac
154154
fi
155+
GIT_COMMITTER_NAME="temp" GIT_COMMITTER_EMAIL="temp" git am -3 --keep-non-patch ../patches/llvm-project/*.patch
155156
cd ..
156157
fi
157158

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
From 3b5b7ddb12fae7ff0807931583dcc3a7f21efc62 Mon Sep 17 00:00:00 2001
2+
From: =?UTF-8?q?Martin=20Storsj=C3=B6?= <[email protected]>
3+
Date: Fri, 10 Oct 2025 10:34:39 +0300
4+
Subject: [PATCH] [libunwind] Fix aarch64 unwinding with a debugger attached
5+
6+
---
7+
libunwind/src/Unwind-seh.cpp | 2 +-
8+
1 file changed, 1 insertion(+), 1 deletion(-)
9+
10+
diff --git a/libunwind/src/Unwind-seh.cpp b/libunwind/src/Unwind-seh.cpp
11+
index 8b83f10615f2..058369acf336 100644
12+
--- a/libunwind/src/Unwind-seh.cpp
13+
+++ b/libunwind/src/Unwind-seh.cpp
14+
@@ -174,7 +174,7 @@ _GCC_specific_handler(PEXCEPTION_RECORD ms_exc, PVOID frame, PCONTEXT ms_ctx,
15+
}
16+
// FIXME: Indicate target frame in foreign case!
17+
// phase 2: the clean up phase
18+
- RtlUnwindEx(frame, (PVOID)disp->ControlPc, ms_exc, exc, ms_ctx, disp->HistoryTable);
19+
+ RtlUnwindEx(frame, (PVOID)disp->ControlPc, ms_exc, exc, disp->ContextRecord, disp->HistoryTable);
20+
_LIBUNWIND_ABORT("RtlUnwindEx() failed");
21+
case _URC_INSTALL_CONTEXT: {
22+
// If we were called by __libunwind_seh_personality(), indicate that
23+
--
24+
2.43.0
25+

0 commit comments

Comments
 (0)