The patch for ticket 3417263 works for normal functions, but not for naked functions like main where the frame offset does not include a return address. Fix this for the next major release.
Peter A. Bigot
Fixed in both LTS/20110716 and development.
Author: Peter A. Bigot <email@example.com>
Date: Wed Mar 7 13:33:04 2012 -0600
SF 3420924 gdb can't find local variables in unoptimized main
Change INCOMING_FRAME_SP_OFFSET to be a constant, matching gcc assumptions.
Implement CFA_FRAME_BASE_OFFSET to adjust CFA for both ISRs and for