2007-05-31 Markus Deuling <deuling@de.ibm.com>
[deliverable/binutils-gdb.git] / gdb / avr-tdep.c
index d07245942e3cdc96a490893a3dfb8eea17b6f860..963a8597e3ef75c6968b7cd0b8388a587a48becb 100644 (file)
@@ -903,7 +903,7 @@ avr_frame_unwind_cache (struct frame_info *next_frame,
 
   /* Adjust all the saved registers so that they contain addresses and not
      offsets.  */
-  for (i = 0; i < NUM_REGS - 1; i++)
+  for (i = 0; i < gdbarch_num_regs (current_gdbarch) - 1; i++)
     if (info->saved_regs[i].addr)
       {
         info->saved_regs[i].addr = (info->prev_sp - info->saved_regs[i].addr);
This page took 0.025036 seconds and 4 git commands to generate.