Hi, I'm writing this mail to avoid confusion. It was my mistake that I wasn't explicit enough. +#define RETADDR_SIZE_STACK 2 --------> for msp430 +#define RETADDR_SIZE_STACK 4 --------> for msp430x, but ONLY if CALLA and RETA are used.
Regards, Alpar On Thu, Sep 18, 2008 at 6:00 PM, palpar <[email protected]> wrote: > Hi everyone! > > I managed to fix some of the problems with msp430-gdb. > After my patch the following should work as expected: backtrace, next, > step, finish, register info. > > The patch should be good both for msp430 and msp430x. The only thing that > you should modify in the patch is the following line: > +#define RETADDR_SIZE_STACK 2 --------> for msp430 > +#define RETADDR_SIZE_STACK 4 --------> for msp430x > The default value is 2. > Unfortunately I didn't have time to compute this based on the architecture. > > Your feedback would be appreciated. > > Regards, > Alpar > > P.S. In case you don't get the attachment, for some time it should also be > available here : > http://www.c7obs.net/~perinia/mspgcc/gdb-alp.patch<http://www.c7obs.net/%7Eperinia/mspgcc/gdb-alp.patch> >
