From: Pierre Langlois Date: Tue, 18 Mar 2014 13:50:54 +0000 (+0000) Subject: Fix PR/16720 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7588d2eca0397166c2445eae6559c89f9b44e4e7;p=binutils-gdb.git Fix PR/16720 2014-03-24 Pierre Langlois * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for small stack allocation. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index bf39bc0b25a..c1231cab6ec 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2014-03-24 Pierre Langlois + + * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for + small stack allocation. + 2014-03-24 Tristan Gingold * darwin-nat.c (exc_server): Remove unused prototype. diff --git a/gdb/avr-tdep.c b/gdb/avr-tdep.c index 6e58f045d67..7fb16d1ff81 100644 --- a/gdb/avr-tdep.c +++ b/gdb/avr-tdep.c @@ -720,7 +720,7 @@ avr_scan_prologue (struct gdbarch *gdbarch, CORE_ADDR pc_beg, CORE_ADDR pc_end, info->size += gdbarch_tdep (gdbarch)->call_length; vpc += 2; } - else if (insn == 0x920f) /* push r0 */ + else if (insn == 0x920f || insn == 0x921f) /* push r0 or push r1 */ { info->size += 1; vpc += 2;