Hello, I've noticed that when debugging programs with gdb on an MSP430 Launchpad (MSP430G2231), the print command in gdb doesn't work properly for local variables. The issue I'm seeing has very similar symptoms to: http://sourceforge.net/tracker/?func=detail&aid=3417263&group_id=42303&atid=432701 but the mspgcc I'm using appears to be much newer than that.
If I ask gdb: > info address a it tells me: Symbol "a" is a variable at frame base reg $r4 offset -2+-8. but looking at the assembly code produced with msp-gcc -S, a is always referenced at -8(r4). The value I get with (gdb) print a corresponds to the variable at -10(r4). Doing (gdb) x/1hd $r4-8 shows the correct value for a. I'm using gcc version 4.6.3 20120301 (mspgcc LTS 20120406 unpatched) (Gentoo 4.6.3_p20120406 p1.0) and GNU gdb (Gentoo MSP430 7.2_p20111205) 7.2 on Gentoo. Carl ------------------------------------------------------------------------------ LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d _______________________________________________ Mspgcc-users mailing list Mspgcc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mspgcc-users