Skip to content

Commit

Permalink
Fix accessing PC on FreeBSD/powerpc and powerpc64
Browse files Browse the repository at this point in the history
  • Loading branch information
pkubaj authored and alk committed Feb 10, 2019
1 parent fc00474 commit 8f9a873
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions m4/pc_from_ucontext.m4
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ AC_DEFUN([AC_PC_FROM_UCONTEXT],
pc_fields="$pc_fields uc_mcontext.arm_pc" # Linux (arm arch 5)
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.__gregs[[_REG_EIP]]" # NetBSD (i386)
pc_fields="$pc_fields uc_mcontext.__gregs[[_REG_RIP]]" # NetBSD (x86_64)
Expand Down

0 comments on commit 8f9a873

Please sign in to comment.