Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » AVR-GCC
  • » [avr-gcc-list] problem with debbuggin with AVRStudio 4.12 and WinAvr [RSS Feed]

#1 Nov. 15, 2005 21:26:14

Nigel W.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[avr-gcc-list] problem with debbuggin with AVRStudio 4.12 and WinAvr


Antonio,

> Main regularly calls somma(e,r) . But after it's ended the
> control flow does not return to main but after its last
> instruction ( exit()).

> int main ()
>

> int r = 0;
> r = somma(e,r);
> r=r+1;
> return r;
> }

I see this sometimes; I suppose you want to "watch" the variable 'r'. 'r'
has temporary scope only, the compiler has no need to store it in 'home'
registers, therefore you cannot "watch" it.

I would get around this by inspecting the register contents after the
function returns by single stepping using the dissassembler view. Sometimes
however, I would store the local variable into a global.


Regards

Nigel Winterbottom




_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.orghttp://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Offline

  • Root
  • » AVR-GCC
  • » [avr-gcc-list] problem with debbuggin with AVRStudio 4.12 and WinAvr [RSS Feed]

Board footer

Moderator control

Enjoy the 20th of November
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support