Getting Started with RealView Debugger
3-14 Copyright ©2002 ARM Limited. All rights reserved. ARM DUI 0181B
3.5 Debugging an image
Chapter4 Quick-start Tutorial provides details on using the features of RealView
Debugger with your images. This section summarizes how to start debugging with
RealView Debugger:
Getting started
Code views on page3- 15
Viewing target status on page3-15.
3.5.1 Getting started
You can start debugging your image when you have completed the following steps:
1. Start RealView Debugger, see Starting RealView Debugger on page3-2.
2. Connect to your target, see Making a connection on page3-5.
3. Set top of memory, if appropriate, see Setting top of memory for a session on
page3-8.
4. Load your image, see Loading an image on page3-10.
To start your debugging session:
1. Select EditEditing Controls Show Line Numbers to display line
numbers.
This is not necessary but might help you to follow the examples.
2. Right-click in the first entry in the Memory pane,
<NoAddr>
, and select Set New
Start Address... from the context menu.
3. Enter a value as the start address for the area of interest, for example
0x8008
.
4. Click Set to confirm the setting and close the dialog box.
5. Click on the Src tab in the File Editor pane.
6. Set a simple, unconditional breakpoint at line 149 in
dhry_1.c
,
Proc_5();
, by
double-clicking on the line number.
If the line number is not visible, then double-click inside the gray area at the left
of the required statement in the File Editor pane to set the breakpoint.
7. Set a watch by right-clicking on the variable
Int_1_Loc
at line 152 in
dhry_1.c
so
that it is underlined in red. Select Watc h from the context menu.