From 151cbf5146cd5b359a4470860d1f7d8f6a843d62 Mon Sep 17 00:00:00 2001 From: Grant Henke Date: Thu, 26 Nov 2020 20:56:46 -0600 Subject: [PATCH] Add OS X arm64 program counter [alkondratenko@gmail.com: updated comment that it is tested] Signed-off-by: Aliaksey Kandratsenka --- m4/pc_from_ucontext.m4 | 1 + 1 file changed, 1 insertion(+) diff --git a/m4/pc_from_ucontext.m4 b/m4/pc_from_ucontext.m4 index 0c7ee28..9d76f4c 100644 --- a/m4/pc_from_ucontext.m4 +++ b/m4/pc_from_ucontext.m4 @@ -43,6 +43,7 @@ AC_DEFUN([AC_PC_FROM_UCONTEXT], pc_fields="$pc_fields uc_mcontext->__ss.__rip" # OS X (>=10.5 [untested]) pc_fields="$pc_fields uc_mcontext->ss.srr0" # OS X (ppc, ppc64 [untested]) pc_fields="$pc_fields uc_mcontext->__ss.__srr0" # OS X (>=10.5 [untested]) + pc_fields="$pc_fields uc_mcontext->__ss.__pc" # OS X (arm64) pc_field_found=false for pc_field in $pc_fields; do if ! $pc_field_found; then