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.
Fixed in both LTS/20110716 and development.
Author: Peter A. Bigot <firstname.lastname@example.org>
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
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.