diff options
Diffstat (limited to 'gdb/m32c-tdep.c')
-rw-r--r-- | gdb/m32c-tdep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/m32c-tdep.c b/gdb/m32c-tdep.c index 91a56cc..5763d5c 100644 --- a/gdb/m32c-tdep.c +++ b/gdb/m32c-tdep.c @@ -2557,7 +2557,7 @@ m32c_virtual_frame_pointer (CORE_ADDR pc, break; } /* Sanity check */ - if (*frame_regnum > NUM_REGS) + if (*frame_regnum > gdbarch_num_regs (current_gdbarch)) internal_error (__FILE__, __LINE__, _("No virtual frame pointer available")); } |