Download Debugger User`s Manual
Transcript
Freescale Semiconductor, Inc. Freescale Semiconductor, Inc... Chapter 8 Debugging C Source Code The Debugger provides several features that are specifically used in debugging C source code. The following topics will help you understand how to best use the Debugger for debugging C source code. (Remember when you compile your source code to include debug information.) • Moving up and down the Call Stack • Displaying the Call Stack • Monitoring C Function Calls • Enabling/Disabling IO Streams • Redirecting an IO Stream • Display the TYPE of a C variable or expression 8.1 Moving Up and Down the Call Stack 8.1.1 To Move Up the Call Stack You can move the current frame up and down the call stack. 1. From the Modify menu choose Up The dialog box in Figure 8-1 appears. Figure 8-1. Moving Up the Call Stack 2. Under Frames select the number of frames to move up in the stack 3. Click OK. The frame to which you moved is now the current starting point for evaluations. Motorola Debugging C Source Code For More Information On This Product, Go to: www.freescale.com 8-1