global variables

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

global variables

1,978件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by RatonVaquero on Wed Feb 24 17:17:57 MST 2010
has anyone found a way to display global variables in the variables tab?
I can only see the local variables....

thanks
0 件の賞賛
返信
8 返答(返信)

1,969件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by RatonVaquero on Fri Feb 26 08:27:58 MST 2010
SOLVED!
The trick was to eliminate the '--gc-sections' from the linker. After that, close the variables tab and re-open the variables tab, then the option to add global variables is enabled.

thanks!
0 件の賞賛
返信

1,969件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Thu Feb 25 15:41:00 MST 2010
If the global variables option is greyed out in the Variables view, then you could try closing the variables view, then reopening it from the "Window -> Show view" menu.

This should reset the variables view, and you should then hopefully be able to add your global variables to it.

Regards,

CodeRedSupport.
0 件の賞賛
返信

1,969件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by renan on Thu Feb 25 14:19:21 MST 2010
Sorry, I cannot see whats grayed out. I cannot zoom your image to see where is.

Renan
0 件の賞賛
返信

1,969件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by RatonVaquero on Thu Feb 25 11:42:15 MST 2010
In my case, the global variables option is grayed out. I will try the "--gc-sections" option.


[IMG]http://img297.imageshack.us/img297/3624/globalvargrays.jpg[/IMG]
0 件の賞賛
返信

1,969件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by renan on Thu Feb 25 10:31:34 MST 2010

Quote: CodeRedSupport

If you remove all globals from the view, and add them back again - does that solve the problem?


When I remove  the variable that I removed from my source, stop debuging and restart debuging it solves. I will try your way too.


Quote: CodeRedSupport

If not, can you try removing the "--gc-sections" option from the link  step of your build and seeing if that helps?


I'm already not using this option.

Renan
0 件の賞賛
返信

1,969件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Thu Feb 25 09:42:53 MST 2010
Renan,

If you remove all globals from the view, and add them back again - does that solve the problem?

If not, can you try removing the "--gc-sections" option from the link step of your build and seeing if that helps?

Regards,

CodeRedSupport
0 件の賞賛
返信

1,969件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by renan on Thu Feb 25 07:25:18 MST 2010
I would like to report a possible bug in this view.

I have created a global variable and added it to variables view. Then I removed the variable from my source code and did not remove it from the view.
I have other variables too in the view.
The problem is that none of the variables that are after the variable I deleted from my source code are beeing refreshed.

See the selected variable value = 12, then down it is showing 13 '\r'.
[IMG]http://img692.imageshack.us/img692/3496/variableserror.th.jpg[/IMG]

Renan
0 件の賞賛
返信

1,969件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Thu Feb 25 02:16:16 MST 2010
Right click on the variables view, and select "add global variables". You then need to select which globals you want to display.

Regards,

CodeRedSupport
0 件の賞賛
返信