+2002-09-17 Theodore A. Roth <troth@verinet.com>
+
+ * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
+ generic_read_register_dummy() (PR gdb/703).
+ (avr_push_return_address): #if 0 out unused vars.
+ (avr_gdbarch_init): Enable use of avr_push_return_address().
+
2002-09-17 Michael Snyder <msnyder@redhat.com>
* m32r-stub.c (restore_and_return): Postpone restoring of PSW.
{
fi->frame = locals;
- /* TRoth: Does -1 mean we're in main? */
fi->extra_info->is_main = 1;
return;
}
{
/* We need to setup fi->frame here because run_stack_dummy gets it wrong
by assuming it's always FP. */
- /* FIXME: cagney/2002-09-13: This is wrong. The third parameter
- to deprecated_read_register_dummy() is REGNUM and not a frame
- address. */
fi->frame = deprecated_read_register_dummy (fi->pc, fi->frame,
- fi->frame);
+ AVR_PC_REGNUM);
}
else if (!fi->next) /* this is the innermost frame? */
fi->frame = read_register (fi->extra_info->framereg);
{
unsigned char buf[2];
int wordsize = 2;
+#if 0
struct minimal_symbol *msymbol;
CORE_ADDR mon_brk;
-
- fprintf_unfiltered (gdb_stderr, "avr_push_return_address() was called\n");
+#endif
buf[0] = 0;
buf[1] = 0;
set_gdbarch_deprecated_extract_return_value (gdbarch, avr_extract_return_value);
set_gdbarch_push_arguments (gdbarch, avr_push_arguments);
set_gdbarch_push_dummy_frame (gdbarch, generic_push_dummy_frame);
-/* set_gdbarch_push_return_address (gdbarch, avr_push_return_address); */
+ set_gdbarch_push_return_address (gdbarch, avr_push_return_address);
set_gdbarch_pop_frame (gdbarch, avr_pop_frame);
set_gdbarch_deprecated_store_return_value (gdbarch, avr_store_return_value);