From ae4aafa4689289e42bce4063720d4955b575c176 Mon Sep 17 00:00:00 2001 From: Aliaksey Kandratsenka Date: Wed, 28 Jun 2023 00:07:49 -0400 Subject: [PATCH] freebsd+x86-64 pc-from-ucontext is not untested --- cmake/PCFromUContext.cmake | 2 +- m4/pc_from_ucontext.m4 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/PCFromUContext.cmake b/cmake/PCFromUContext.cmake index 94f2392..69118b9 100644 --- a/cmake/PCFromUContext.cmake +++ b/cmake/PCFromUContext.cmake @@ -34,7 +34,7 @@ macro(pc_from_ucontext variable) "uc_mcontext.gp_regs[PT_NIP]" # Suse SLES 11 (ppc64) "uc_mcontext.mc_eip" # FreeBSD (i386) "uc_mcontext.mc_srr0" # FreeBSD (powerpc, powerpc64) - "uc_mcontext.mc_rip" # FreeBSD (x86_64 [untested]) + "uc_mcontext.mc_rip" # FreeBSD (x86_64) "uc_mcontext.__gregs[_REG_EIP]" # NetBSD (i386) "uc_mcontext.__gregs[_REG_RIP]" # NetBSD (x86_64) "uc_mcontext->ss.eip" # OS X (i386, <=10.4) diff --git a/m4/pc_from_ucontext.m4 b/m4/pc_from_ucontext.m4 index 53ba700..cc98641 100644 --- a/m4/pc_from_ucontext.m4 +++ b/m4/pc_from_ucontext.m4 @@ -36,7 +36,7 @@ AC_DEFUN([AC_PC_FROM_UCONTEXT], pc_fields="$pc_fields uc_mcontext.gp_regs[[PT_NIP]]" # Suse SLES 11 (ppc64) pc_fields="$pc_fields uc_mcontext.mc_eip" # FreeBSD (i386) pc_fields="$pc_fields uc_mcontext.mc_srr0" # FreeBSD (powerpc, powerpc64) - pc_fields="$pc_fields uc_mcontext.mc_rip" # FreeBSD (x86_64 [untested]) + pc_fields="$pc_fields uc_mcontext.mc_rip" # FreeBSD (x86_64) pc_fields="$pc_fields uc_mcontext.__gregs[[_REG_EIP]]" # NetBSD (i386) pc_fields="$pc_fields uc_mcontext.__gregs[[_REG_RIP]]" # NetBSD (x86_64) pc_fields="$pc_fields uc_mcontext->ss.eip" # OS X (i386, <=10.4)