diff options
Diffstat (limited to 'gdb/ppcnbsd-nat.c')
-rw-r--r-- | gdb/ppcnbsd-nat.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/ppcnbsd-nat.c b/gdb/ppcnbsd-nat.c index 037b8d7..7b22b12 100644 --- a/gdb/ppcnbsd-nat.c +++ b/gdb/ppcnbsd-nat.c @@ -36,7 +36,8 @@ getregs_supplies (int regno) { struct gdbarch_tdep *tdep = gdbarch_tdep (current_gdbarch); - return ((regno >= 0 && regno <= 31) + return ((regno >= tdep->ppc_gp0_regnum + && regno < tdep->ppc_gp0_regnum + ppc_num_gprs) || regno == tdep->ppc_lr_regnum || regno == tdep->ppc_cr_regnum || regno == tdep->ppc_xer_regnum |