6.2.12 Step12 : Displaying Local Variables
The user can display local variables in a function using the [C Watch] window.
If the downloaded program is the program generated by the assembler package for 740 family, you
can not watch variables in C watch window.
6.2.12.1 Displaying Local Variables
For example, we will examine the local variables in the tutorial function, which declares three local
variables: i, j, and p_sam.
Select [C Watch] from the [Symbol] submenu of the [View] menu. The [C Watch] window is displayed.
By default, [C watch] window has four tabs as following:
•
[Watch] tab
Only the variable which the user registered is displayed.
•
[Local] tab
All the local variables that can be referred to by the scope in which the the PC exists are
displayed. If a scope is changed by program execution, the contents of the [Local] tab will also
change.
•
[File Local] tab
All the file local variables of the file scope in which the PC exists are displayed. If a file scope is
changed by program execution, the contents of the [File Local] tab will also change.
•
[Global] tab
All the global variables currently used by the downloaded program are displayed.
Please choose the [Local] tab, when you display a local variable.
Double-click the mark '+' at the left side of pointer p_sam in the [Locals] window to display the
structure *(p_sam).
When the user refers to the members of the structure at the end of the Tutorial function, it is clarified
that random data is sorted in descending order.
78
Содержание Emulator Debugger M16C PC4701
Страница 13: ...Setup of Debugger 1...
Страница 14: ...Blank Page 2...
Страница 73: ...Tutorial 59...
Страница 74: ...Blank Page 60...
Страница 95: ...Reference 81...
Страница 96: ...Blank Page 82...
Страница 119: ...7 Windows Dialogs When TRIGGER is selected Breaks for the status of signal input from external trace cable 105...
Страница 127: ...7 Windows Dialogs 7 7 6 1 1 Writing Reading a Specified Address Set as below Example Writing to even address 400h 113...
Страница 128: ...Example Writing byte length data 32h to even address 400h 114...
Страница 130: ...16 bits bus width 116...
Страница 132: ...2nd point 118...
Страница 133: ...7 Windows Dialogs 16 bits bus width 119...
Страница 134: ...Example Writing data 10h 3Fh to even address 400h 120...
Страница 138: ...Example Writing byte length data 32h to even address 400h 124...
Страница 140: ...16 bits bus width 126...
Страница 141: ...7 Windows Dialogs Example Writing word length data 1234h to even address 400h 127...
Страница 142: ...Example Writing data 10h 3Fh to even address 400h 128...
Страница 146: ...Example Writing byte length data 32h to even address 400h 132...
Страница 147: ...7 Windows Dialogs Example Writing data 10h 3Fh to even address 400h 133...
Страница 153: ...7 Windows Dialogs 7 7 8 2 Interrupt Termination Set as below 139...
Страница 172: ...For condition 7 choose the Mode shown below and set the Start event 158...
Страница 177: ...7 Windows Dialogs When TRIGGER is selected Measures for the status of signal input from external trace cable 163...
Страница 294: ...MEMO 280...