diff options
Diffstat (limited to 'gdb/m68k-tdep.c')
-rw-r--r-- | gdb/m68k-tdep.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/m68k-tdep.c b/gdb/m68k-tdep.c index d928d74..c96d4d5 100644 --- a/gdb/m68k-tdep.c +++ b/gdb/m68k-tdep.c @@ -496,7 +496,8 @@ m68k_dwarf_reg_to_regnum (int num) /* pc */ return M68K_PC_REGNUM; else - return NUM_REGS + NUM_PSEUDO_REGS; + return gdbarch_num_regs (current_gdbarch) + + gdbarch_num_pseudo_regs (current_gdbarch); } |