C-SPY에서 같은 이름의 변수 해석
2018-02-28 오전 1:52
If your application code contains variables with the same name, it might be difficult to set a breakpoint (using C-SPY macros), or to set a watch on one of them in the C-SPY watch window.
You need to specify the symbol location in a more specific way.
The syntax is:
For example, if the files "main.c" and "test.c" contain a static global (file global) variable called "testvar", the syntax would be:
If the file "main.c" contains a function called "testfunc" with a local variable called "testvar", the syntax to add this variable to the Watch window would be:
The syntax above works in the Watch window and in C-SPY macros (for example __setSimBreak). Note that in C-SPY macros you need to protect the backslashes (\) with an extra backslash (for example "main\\testvar").
See the example screenshot from C-SPY (below), and the Example project for IAR Embedded Workbench for ARM 6.10.
All product names are trademarks or registered trademarks of their respective owners.