+2007-10-30 Markus Deuling <deuling@de.ibm.com>
+
+ * avr-tdep.c (avr_frame_unwind_cache, avr_frame_prev_register): Use
+ get_frame_arch to get at the current architecture by frame_info.
+
2007-10-30 Markus Deuling <deuling@de.ibm.com>
* arm-tdep.c (arm_get_next_pc): Replace current_gdbarch by gdbarch.
/* Adjust all the saved registers so that they contain addresses and not
offsets. */
- for (i = 0; i < gdbarch_num_regs (current_gdbarch) - 1; i++)
+ for (i = 0; i < gdbarch_num_regs (get_frame_arch (next_frame)) - 1; i++)
if (info->saved_regs[i].addr)
{
info->saved_regs[i].addr = (info->prev_sp - info->saved_regs[i].addr);
buf[1] = tmp;
pc = (extract_unsigned_integer (buf, 2) * 2);
- store_unsigned_integer (bufferp,
- register_size (current_gdbarch, regnum),
- pc);
+ store_unsigned_integer
+ (bufferp, register_size (get_frame_arch (next_frame), regnum),
+ pc);
}
}
}