2003-06-15 Theodore A. Roth * avr-tdep.c (avr_register_type): Remove a blank line. (avr_scan_prologue): Correct some comments. Index: avr-tdep.c =================================================================== RCS file: /cvs/src/src/gdb/avr-tdep.c,v retrieving revision 1.58 diff -u -r1.58 avr-tdep.c --- avr-tdep.c 16 Jun 2003 00:36:59 -0000 1.58 +++ avr-tdep.c 16 Jun 2003 05:47:41 -0000 @@ -184,7 +184,6 @@ { if (reg_nr == AVR_PC_REGNUM) return builtin_type_uint32; - if (reg_nr == AVR_SP_REGNUM) return builtin_type_void_data_ptr; else @@ -375,9 +374,9 @@ sbiw r28, in __tmp_reg__,__SREG__ cli - out __SP_L__,r28 - out __SREG__,__tmp_reg__ out __SP_H__,r29 + out __SREG__,__tmp_reg__ + out __SP_L__,r28 A typical AVR function prologue without a frame pointer might look like this: @@ -672,7 +671,7 @@ /* Third stage of the prologue scanning. (Really two stages) Scan for: sbiw r28,XX or subi r28,lo8(XX) - sbci r29,hi8(XX) + sbci r29,hi8(XX) in __tmp_reg__,__SREG__ cli out __SP_H__,r29