This makes sense: gdb has not yet been updated to reflect any changes made
since mspgcc4.  One of those changes was the semantics of the value stored
in the frame pointer; see
http://www.mail-archive.com/[email protected]/msg09775.html
.

If somebody would file a tracker ticket along with an example program and
instructions for reproducing the problem (seriously: I almost never use gdb
for embedded development) it'll encourage me to look at it.  But since I
expect the 20-bit changes will have a significant impact on the dwarf2 data
used for debugging, gdb updates will probably be delayed until the compiler
updates have been completed.

There's a very small but non-zero probability that a simple offset fix could
be applied now, if somebody else would care to look at it.

Peter

On Sun, Aug 14, 2011 at 2:14 PM, Alex Stefan
<[email protected]>wrote:

> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mspgcc-users
>
------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/mspgcc-users

Reply via email to