summaryrefslogtreecommitdiff
path: root/gdb/avr-tdep.c
diff options
context:
space:
mode:
authorTheodore A. Roth <troth@openavr.org>2002-09-17 23:08:45 +0000
committerTheodore A. Roth <troth@openavr.org>2002-09-17 23:08:45 +0000
commit1538000adcb75413fe14e1697d2475bb7a27500d (patch)
treed2ea4126d0ce7963d545560b697314545d5039c9 /gdb/avr-tdep.c
parent4a56e3695765ab1c1fc16044509f8a204c026cfd (diff)
downloadgdb-1538000adcb75413fe14e1697d2475bb7a27500d.tar.gz
* 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().
Diffstat (limited to 'gdb/avr-tdep.c')
-rw-r--r--gdb/avr-tdep.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/gdb/avr-tdep.c b/gdb/avr-tdep.c
index bcd78e11db3..c67e4e8d8d5 100644
--- a/gdb/avr-tdep.c
+++ b/gdb/avr-tdep.c
@@ -524,7 +524,6 @@ avr_scan_prologue (struct frame_info *fi)
{
fi->frame = locals;
- /* TRoth: Does -1 mean we're in main? */
fi->extra_info->is_main = 1;
return;
}
@@ -755,11 +754,8 @@ avr_init_extra_frame_info (int fromleaf, struct frame_info *fi)
{
/* 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);
@@ -961,10 +957,10 @@ avr_push_return_address (CORE_ADDR pc, CORE_ADDR sp)
{
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;
@@ -1243,7 +1239,7 @@ avr_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
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);