11.07.2015 Views

CrossWorks for ARM User Guide

CrossWorks for ARM User Guide

CrossWorks for ARM User Guide

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.

•Right click the tool bar area to display the View menu.•From the popup menu, click Other Windows then Watch n.Adding or changing items to watchYou can add a new expression to be watched by clicking and typing into the last entryin the watch window. You can change the expression that is watched by clicking theexpression entry and editing its contents.Changing display <strong>for</strong>matWhen you select a variable in the main part of the display, the display <strong>for</strong>mat buttonhighlighted on the Watch window tool bar changes to show the item’s display <strong>for</strong>mat.To change the display <strong>for</strong>mat of a local variable, do one of the following:•Right click the item to change.•From the popup menu, select the <strong>for</strong>mat to display the item in.—or—•Click the item to change.•On the Watch window tool bar, select the <strong>for</strong>mat to display the item in.The selected display <strong>for</strong>mat will then be used <strong>for</strong> all subsequent displays and will berecorded when the debug session stops.For C programs the interpretation of pointer types can be changed by right clicking andselecting from the popup menu. A pointer can be interpreted as:•a null terminated ASCII string.•an array.•an integer.•dereferenced.Modifying watched valuesTo modify the value of a local variable, do one of the following:•Click the value of the local variable to modify.•Enter the new value <strong>for</strong> the local variable. Prefix hexadecimal numbers with ‘0x’,binary numbers with ‘0b’, and octal numbers with ‘0’.—or—•Right click the value of the local variable to modify.•From the popup menu, select one of the operations to modify the variable’s value124 Chapter 12 CrossStudio Windows

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

Saved successfully!

Ooh no, something went wrong!