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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Working with Debug ViewsThis dialog enables you to select a new value for the chosen register or to use anexpression to define the contents. For example, highlight the entry . Click OK to display a box where you can enter the value orchoose from a drop-down list.As you change a value in a CPSR register field, the CPSR register value is also updated.6.1.3 Changing register contentsYou can use in-place editing to change register contents in the Register pane. There are,however, other ways to set register values from the Code window:• Set the contents of a register by pasting variables from other windows. Forexample, right-click on a value in the source-level view and select Copy from thecontext menu. Right-click in the register whose value you want to change andselect Paste Value from the context menu.• If you want to use a favorite data value that you have saved, right-click on aregister and select Set from Favorites from the context menu to display aFavorites Chooser/Editor dialog box (see Using the Favorites Chooser/Editordialog box on page 8-29).• Highlight a value in the Src tab in the File Editor pane and then use drag-and-dropto copy the expression into the contents of a chosen register in the Register pane.See Dragging and dropping expressions into register contents for an example.• Select Debug → Memory/Register Operations → Set Register... from theCode window main menu to display the Interactive Register Setting dialog box.Any register contents you change are displayed in blue.NoteYou can also set breakpoints on memory mapped registers but not on core registers,because breakpoints are set on addresses and core registers do not have addresses.Dragging and dropping expressions into register contentsYou can drag and drop an expression from a source file into the contents of a registerfunction name. The following example shows how to you can set the PC register to theaddress of a function:1. Load the dhrystone.axf image.2. Enable line numbering and locate line 149 in the dhry_1.c source.6-6 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!