Akhil Piplani <akhil.piplani <at> gmail.com> writes:

> 
> Hi,
> 
> While debugging code built with MSPGCC
> (home/windows/mingw/mspgcc-20110716.zip)  on the TI launchpad
> (MSP430G2231), I saw that the addresses for the local variables are
> wrong and GDB always shows their values as 0. Further, the addresses
> of successive local variables are increasing instead of decreasing.
> The code executes fine though.
> 
> By inspecting the memory, I do see the correct behavior of my
> variables at the correct locations. I tried the same code using
> MSPGCC4 and the problem disappears.
> 
> Cheers,
> Akhil
 

I have made a similar discovery when debugging code from the latest version of 
MSPGCC. To be more specific, the code generated couldn't be debugged correctly, 
the problem being the location of local variables. GDB showed them located in 
the code memory, not on the stack. 

Alex


------------------------------------------------------------------------------
FREE DOWNLOAD - uberSVN with Social Coding for Subversion.
Subversion made easy with a complete admin console. Easy 
to use, easy to manage, easy to install, easy to extend. 
Get a Free download of the new open ALM Subversion platform now.
http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mspgcc-users

Reply via email to