aboutsummaryrefslogtreecommitdiff
path: root/gdb/shnbsd-nat.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/shnbsd-nat.c')
-rw-r--r--gdb/shnbsd-nat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/shnbsd-nat.c b/gdb/shnbsd-nat.c
index 6afa573..3236bb7 100644
--- a/gdb/shnbsd-nat.c
+++ b/gdb/shnbsd-nat.c
@@ -37,7 +37,7 @@
/* Determine if PT_GETREGS fetches this register. */
#define GETREGS_SUPPLIES(regno) \
(((regno) >= R0_REGNUM && (regno) <= (R0_REGNUM + 15)) \
-|| (regno) == PC_REGNUM || (regno) == PR_REGNUM \
+|| (regno) == gdbarch_pc_regnum (current_gdbarch) || (regno) == PR_REGNUM \
|| (regno) == MACH_REGNUM || (regno) == MACL_REGNUM \
|| (regno) == SR_REGNUM)