+2009-11-10 Tristan Gingold <gingold@adacore.com>
+
+ * avr-tdep.c (avr_dwarf_reg_to_regnum): New function.
+ (avr_gdbarch_init): Call set_gdbarch_dwarf2_reg_to_regnum.
+
2009-11-09 Sebastien Granjoux <seb.sfo@free.fr>
PR mi/9583:
* target.c (dummy_find_memory_regions): Change output.
(dummy_make_corefile_notes): Ditto.
+2009-10-26 Tristan Gingold <gingold@adacore.com>
+
+ * charset.c (_initialize_charset): Set a default value to
+ auto_host_charset_name if empty.
+
2009-10-26 Tristan Gingold <gingold@adacore.com>
* avr-tdep.c (avr_push_dummy_call): Handle avr6 architecture.
return sp + call_length;
}
+/* Unfortunately dwarf2 register for SP is 32. */
+
+static int
+avr_dwarf_reg_to_regnum (struct gdbarch *gdbarch, int reg)
+{
+ if (reg >= 0 && reg < 32)
+ return reg;
+ if (reg == 32)
+ return AVR_SP_REGNUM;
+
+ warning (_("Unmapped DWARF Register #%d encountered."), reg);
+
+ return -1;
+}
+
/* Initialize the gdbarch structure for the AVR's. */
static struct gdbarch *
set_gdbarch_push_dummy_call (gdbarch, avr_push_dummy_call);
+ set_gdbarch_dwarf2_reg_to_regnum (gdbarch, avr_dwarf_reg_to_regnum);
+
set_gdbarch_address_to_pointer (gdbarch, avr_address_to_pointer);
set_gdbarch_pointer_to_address (gdbarch, avr_pointer_to_address);