
340
6.17 Stack Trace Function
The emulator uses the stack’s information to display the function call history.
Notes: 1. This function can be used only when the load module that has the Dwarf2-type debugging
information is loaded. Such load module is supported in H8S, H8/300 C/C++ compiler V4.0 or later.
2. For details on the stack trace function, refer to the online help.
• Double-click the [Editor] column in the sort function and set a PC breakpoint.
Figure 6.60 [Source] Window (PC Breakpoint Setting)
• Select [Reset Go] from the [Debug] menu.
• After the break in program execution, select [Stack Trace] from the [Code] submenu of the [View] menu to
open the [Stack Trace] window.
Figure 6.61 [Stack Trace] Window
Figure 6.61 shows that the position of the program counter is currently at the selected line of the sort()
function, and that the sort() function is called from the tutorial() function.
To remove the PC breakpoint, double-click the [Editor] column in the sort function again.
Comentarios a estos manuales