diff options
author | Pierre Langlois <pierre.langlois@embecosm.com> | 2014-03-18 13:50:54 +0000 |
---|---|---|
committer | Pierre Langlois <pierre.langlois@embecosm.com> | 2014-03-24 09:29:49 +0000 |
commit | 7588d2eca0397166c2445eae6559c89f9b44e4e7 (patch) | |
tree | 4abe3339d74cb4e05a839e99da717d32ee466c40 /gdb/avr-tdep.c | |
parent | a62904492b27b9fb77da8fa2714fd05cc28804a7 (diff) | |
download | gdb-7588d2eca0397166c2445eae6559c89f9b44e4e7.zip gdb-7588d2eca0397166c2445eae6559c89f9b44e4e7.tar.gz gdb-7588d2eca0397166c2445eae6559c89f9b44e4e7.tar.bz2 |
Fix PR/16720
2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
* avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
small stack allocation.
Diffstat (limited to 'gdb/avr-tdep.c')
-rw-r--r-- | gdb/avr-tdep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/avr-tdep.c b/gdb/avr-tdep.c index 6e58f04..7fb16d1 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; |