Local Variables not updated during call

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Local Variables not updated during call

363 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by wdawson61 on Thu Apr 07 09:31:19 MST 2011
LPCXpresso:
Version: LPCXpresso 3.8.2 [Build 129] [31/01/2011]
Ubuntu 10.10
LPC1754

In some modules (source files) of a project, the local variable display does not show the correct "frame" I.e., the local variables do not change when stepping into a function.  The variables from the calling function remain in the display and none of the called routine's varaibles are displayed.

In other modules(files) of the same project all works perfectly.  The called function are prototyped before the calling functions if that makes any diff.  (Though I have switched the order to no avail).
0 Kudos
Reply
1 Reply

357 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Thu Apr 07 13:18:52 MST 2011
This is *possibly* to do with the use of the linker option --gc-sections. Try removing it from the linker options and then try again.

If this does not solve the problem, please post a project that exhibits the problem, and we'll take a look.
0 Kudos
Reply