+2003-06-14 Theodore A. Roth <troth@openavr.org>
+
+ * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
+ causes gdb to seg fault.
+
2003-06-14 Daniel Jacobowitz <drow@mvista.com>
* sparc-nat.c (fetch_inferior_registers): Correct
frame pointer, adjust the stack pointer, and save registers. */
get_frame_extra_info (fi)->framesize = 0;
- prologue_len = prologue_end - prologue_start;
+ prologue_len = min (prologue_end - prologue_start, AVR_MAX_PROLOGUE_SIZE);
read_memory (prologue_start, prologue, prologue_len);
/* Scanning main()'s prologue