LXPXpresso debugging

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

LXPXpresso debugging

509件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Martin_ on Thu Aug 25 07:32:46 MST 2011
Hello,
I've have a problem debugging with LPCXpresso (V4.0.6, embedded Artists
LPC11C24 evalBoard and embedded Artists  LPC1114 evalBoard, different
computers).
The attached project file contain one test_function, which never called, and a
main function with a for loop. When I debug this project on an evalBoard, the
debugger jumps after some single steps in main-function into the non-called
function and later back to main.
If I trunc the test_function to several lines the debugger behaves as aspected.

Has the debugger limitations in function-length or file-length?
0 件の賞賛
返信
2 返答(返信)

501件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Martin_ on Thu Aug 25 10:21:20 MST 2011
Thanks a lot for your answer. I tried it and the scary behavior doesn't occur.

<close>
0 件の賞賛
返信

501件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Thu Aug 25 08:18:03 MST 2011
This is caused by a (fairly rare) bug in the linker/debugger when unused code is eliminated. As you function is never called, the linker removes it from the executable. If you remove the "--gc-sections" option from the Linker/miscellaneous options, this will prevent the linker from removing unused code and you won't see this odd behavior.
0 件の賞賛
返信