| |||
| Home > Setting Conditional Tracepoints > Setting tracepoints to trace accesses of a specific size > Procedure | |||
To capture data and instruction accesses of a specific size:
In the source or disassembly view, right-click on the gray margin to the left of the required location to display context menu.
Select Create Tracepoint... from the context menu to display the Set/Edit Tracepoint dialog box. An example is shown in Figure 7.5.
Select the required tracepoint type from the first drop-down list.
Select the required tracepoint comparison type from the second drop-down list. The tracepoint comparison type determines which of the remaining parameters you can set.
Do not select External Condition, because the Size of Data Access field is not supported for this type.
Specify the address or address range to be traced as appropriate:
a line number in the
source code, with or without a module name prefix, for example \TRACE\#56:0
an address or address range
a function name, for example, Func_1
a function entry point, for example, Func_1\@entry.
Choose the required Size of Data Access. The following options are available:
To check byte addresses depending on the implementation:
halfword for Thumb® code
word for ARM® code.
This is the default.
For ETMv3, you must select Halfword for Thumb data accesses. Otherwise, the address comparators might activate unexpectedly.
To check byte addresses (Thumb code).
To check both byte addresses in the halfword (Thumb code). This must be used, for example, if you are interested in byte accesses to either byte of a halfword.
To check all four byte addresses in the same word (ARM code). This must be used, for example, if you are interested in byte accesses to any byte of a word.
This parameter adds the hw_in:"Size of Data Access= command
qualifier to the CLI command that is generated by RealView Debugger when
it sets a tracepoint.size"
Set any other parameters as required.
Click OK to set the tracepoint and close the Set/Edit Tracepoint dialog box.