13.07.2015 Views

RealView Debugger User Guide - ARM Information Center

RealView Debugger User Guide - ARM Information Center

RealView Debugger User Guide - ARM Information Center

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Controlling ExecutionTo see an example using this option:1. Connect to your target and load an image, for exampledhrystone.axf.2. Click on the Src tab to view the source file dhry_1.c.3. Select Edit → Advanced → Show Line Numbers to display linenumbers.This is not necessary but might help you to follow the examples.4. Display line 78.5. Set a default breakpoint by double-clicking on the line number inthe left margin.6. View the Output pane message:bi \DHRY_1\#78:27. Click Run and the program begins execution and runs up to thebreakpoint.The Output pane shows where execution stops.8. Click High-level Step Into once. A red box shows the location ofthe PC at line 91.9. Click High-level Step Into several times to move through the linesof source code.In this example, <strong>RealView</strong> <strong>Debugger</strong> completes two high-level steps atthe start. Therefore, the first high-level step takes the PC from the entrypoint to main(), and the second steps to after the function prolog.NoteYou can get to main() using Run (as described in this example) or a singlestep. The single step executes (from the high-level code) up to main().High-level Step OverClick this button to step by lines of source code over function calls.If the source line makes a call to a function, <strong>RealView</strong> <strong>Debugger</strong> executesthe function completely before stopping, assuming that there is nostopping condition in the function call, for example a breakpoint.Low-level Step IntoClick this button to step by instructions into functions. <strong>RealView</strong><strong>Debugger</strong> executes the assembly language instruction at the currentlocation of the PC.3-8 Copyright © 2002-2005 <strong>ARM</strong> Limited. All rights reserved. <strong>ARM</strong> DUI 0153G

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!