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.

Working with Breakpointshardware determines whether a software or hardwarebreakpoint is set (see Setting default breakpoints onpage 4-15).Conditional A breakpoint is conditional when a condition qualifier is assigned to thebreakpoint. The conditions that must be satisfied can be defined based ondata values, the result of a macro, or on counters.The program stops if execution reaches a specified location and one ormore of the predefined conditions are met (see Setting conditionalbreakpoints on page 4-34).If you want to use multiple conditions, see Controlling the behavior ofbreakpoints on page 4-59 for details on how the order of conditionalqualifiers affects the behavior of a breakpoint.NoteAlthough hardware breakpoints can have conditions controlled inhardware, they are not conditional in <strong>RealView</strong> <strong>Debugger</strong>. Onlybreakpoints that have condition qualifiers assigned are identified asconditional by <strong>RealView</strong> <strong>Debugger</strong>.Default breakpoints in the GUIA default breakpoint is set by <strong>RealView</strong> <strong>Debugger</strong> when you do not explicitly choose aspecific type of breakpoint. For example, a default breakpoint is set when youdouble-click in the margin of the Dsm tab or a source code tab of the File Editor pane.A default breakpoint does not have any condition qualifiers or actions, and so is alwaysan unconditional breakpoint. However, the chosen memory location where you set thebreakpoint determines whether it is a software or hardware breakpoint (see Breakpointsand memory map locations on page 4-9).The command used by <strong>RealView</strong> <strong>Debugger</strong> to set a default breakpoint depends on thetype:• To set a default software breakpoint, <strong>RealView</strong> <strong>Debugger</strong> uses theBREAKINSTRUCTION command. For example, to set a default breakpoint at the RAMaddress 0x00008008, <strong>RealView</strong> <strong>Debugger</strong> issues the command:binstr (I A)0x00008008• To set a default hardware breakpoint, <strong>RealView</strong> <strong>Debugger</strong> uses theBREAKEXECUTION command. For example, if you set a default breakpoint at theIntegrator /AP Flash address 0x24000008, <strong>RealView</strong> <strong>Debugger</strong> issues thecommand:<strong>ARM</strong> DUI 0153G Copyright © 2002-2005 <strong>ARM</strong> Limited. All rights reserved. 4-5

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

Saved successfully!

Ooh no, something went wrong!