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 BreakpointsStopped at 0x000084C4 due to SW Instruction BreakpointStopped at 0x000084C4: DHRY_1\main Line 153From Table 4-3 on page 4-60 you can see that:• The details of the breakpoint are never recorded when the breakpoint continues.That is when the return value of a macro is nonzero, or if a continue action isassigned.• When the return value of a macro is nonzero, any actions are never performed, sothe Actions performed message is never printed. In addition, any conditionqualifiers that are specified after the macro that returns nonzero are never tested.Therefore, when using macros with breakpoints, make sure that you position themacros appropriately, especially if any return a nonzero value.• The frequency that a macro is executed depends on whether it appears before orafter other qualifiers.NoteThe continue action qualifier and a macro nonzero value result in different behavior.Although both inhibit the display of the breakpoint details, actions are never performedwhen a macro returns a nonzero value.4.10.2 Using a macro as an argument to a break commandYou can optionally specify a macro as an argument at the end of a break command. Anymacro that is specified in this way is treated as being specified last in the commandqualifier list. For example:breakinstruction,passcount:5,message:{"Actions performed"} (I A)\DHRY_1\#153:2;viewSymbol()This command gives the same behavior where the command qualifiers are in thefollowing order (see Table 4-3 on page 4-60):,passcount:5,macro:{viewSymbol()},message:{"Actions performed"}Because a macro argument is treated last in the command qualifier list, if you alsospecify a macro as a command qualifier, then execution of the macro argument dependson the result returned by the macro qualifier. For example, you might define a secondmacro, such as:define /R int viewValue(){$printf "Int_1_Loc: %d", Int_1_Loc$;return (0); // 0 - stop execution at the breakpoint<strong>ARM</strong> DUI 0153G Copyright © 2002-2005 <strong>ARM</strong> Limited. All rights reserved. 4-61

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

Saved successfully!

Ooh no, something went wrong!