mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 20:14:06 +08:00
2010-02-17 Tristan Gingold <gingold@adacore.com>
Petr Hluzí<petr.hluzin@gmail.com> * avr-tdep.c (avr_scan_prologue): Convert an if statement to a gdb_assert. Fix info->size for SIG prologue.
This commit is contained in:
parent
444a144ff4
commit
243e2c5d0a
@ -1,3 +1,9 @@
|
||||
2010-02-17 Tristan Gingold <gingold@adacore.com>
|
||||
Petr Hluzín <petr.hluzin@gmail.com>
|
||||
|
||||
* avr-tdep.c (avr_scan_prologue): Convert an if statement to a
|
||||
gdb_assert. Fix info->size for SIG prologue.
|
||||
|
||||
2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
|
||||
|
||||
* infcmd.c (show_inferior_tty_command): Check for NULL.
|
||||
|
@ -686,7 +686,7 @@ avr_scan_prologue (struct gdbarch *gdbarch, CORE_ADDR pc_beg, CORE_ADDR pc_end,
|
||||
info->saved_regs[AVR_SREG_REGNUM].addr = 3;
|
||||
info->saved_regs[0].addr = 2;
|
||||
info->saved_regs[1].addr = 1;
|
||||
info->size += 3;
|
||||
info->size += 2;
|
||||
}
|
||||
}
|
||||
|
||||
@ -708,9 +708,7 @@ avr_scan_prologue (struct gdbarch *gdbarch, CORE_ADDR pc_beg, CORE_ADDR pc_end,
|
||||
break;
|
||||
}
|
||||
|
||||
if (vpc >= AVR_MAX_PROLOGUE_SIZE)
|
||||
fprintf_unfiltered (gdb_stderr,
|
||||
_("Hit end of prologue while scanning pushes\n"));
|
||||
gdb_assert (vpc < AVR_MAX_PROLOGUE_SIZE);
|
||||
|
||||
/* Handle static small stack allocation using rcall or push. */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user