Download ARM Software Development Toolkit User Guide

Transcript
ARM Debuggers for Windows and UNIX
Setting a simple breakpoint
There are two methods you can use to set a simple breakpoint:
Method 1
1.
Double click on the line where you want to set the breakpoint.
2.
Click the OK button in the dialog box that appears.
Method 2
1.
Position the cursor in the line where you want to set the breakpoint.
2.
Set the breakpoint in any of the following ways:
•
select Toggle Breakpoint from the Execute menu
•
click the Toggle breakpoint button
•
press the F9 key.
A new breakpoint is displayed as a red marker in the left pane of the Execution window,
the Disassembly window, or the Source File window.
In a line with several statements you can set a breakpoint on an individual statement, as
demonstrated in the following example:
int main()
{
hello(); world();
.
.
.
return 0;
}
If you position the cursor on the word world and click the Toggle breakpoint button,
hello() is executed, and execution halts before world() is executed.
To see all the breakpoints set in your executable image select Breakpoints from the
View menu.
To set a simple breakpoint on a function:
ARM DUI 0040D
1.
Display a list of function names in the Function Names window by selecting
Function Names from the View menu.
2.
Select Toggle Breakpoint from the Function Names window menu or click the
Toggle breakpoint button.
Copyright © 1997, 1998 ARM Limited. All rights reserved.
3-27