2.13.8.2 Searching at the source level

Search for trace data at the source level.

Select the [Source Level] tab.

Figure 2.147

Search for Trace Data at Source Level

(1)

To specify a source line before performing a search (default)

Select [The execution part is retrieved specifying the source line] in the [Search object] area, then perform the following operation.

(a)

Specifying the [Source and Line]

The character string specified here is searched from within the [Line/Address] area of the Trace panel.

Enter a character string included in the source line you want to search directly in the text box or select an input history item from the drop-down list (up to 10 history entries).

Searches are case-insensitive, and partial matches are also allowed.

Example 1.

main.c#40

Example 2.

main.c

Example 3.

main

(b)

Specifying the [Number]

Specify a range of trace data to search by numbers displayed in the [Number] area of the Trace panel.

Specify start and end numbers in the left and right text boxes, respectively. (By default, "0" to "last number" are specified.)

Enter a number in decimal notation directly in the text box or select an input history item from the drop-down list (up to 10 history entries).

If the left-side text box is blank, the number "0" is assumed.

If the right-side text box is blank, the "last number" is assumed.

(c)

Clicking the [Search Backward] or [Search Forward] button

When you click the [Search Backward] button, a search is performed in the direction toward smaller numbers, with the searched spot put in selected state on the Trace panel.

When you click the [Search Forward] button, a search is performed in the direction toward larger numbers, with the searched spot put in selected state on the Trace panel.

(2)

To specify a function name before performing a search

Select [The execution part is retrieved specifying the function] in the [Search object] area, then perform the following operation.

(a)

Specifying the [Function Name]

Enter a function name you want to search directly in the text box or select an input history item from the drop-down list (up to 10 history entries).

Searches are case-sensitive, and only perfect matches are allowed.

(b)

Specifying the [Number]

Specify a range of trace data to search by numbers displayed in the [Number] area of the Trace panel.

Specify start and end numbers in the left and right text boxes, respectively. (By default, "0" to "last number" are specified.)

Enter a number in decimal notation directly in the text box or select an input history item from the drop-down list (up to 10 history entries).

If the left-side text box is blank, the number "0" is assumed.

If the right-side text box is blank, the "last number" is assumed.

(c)

Clicking the [Search Backward] or [Search Forward] button

When you click the [Search Backward] button, a search is performed in the direction toward smaller numbers, with the searched spot put in selected state on the Trace panel.

When you click the [Search Forward] button, a search is performed in the direction toward larger numbers, with the searched spot put in selected state on the Trace panel.

(3)

To specify a global variable name before performing a search

Select [The execution part is retrieved specifying the global variable] in the [Search object] area, then perform the following operation.

(a)

Specifying the [Variable Name]

Enter a variable name you want to search directly in the text box or select an input history item from the drop-down list (up to 10 history entries).

Searches are case-sensitive, and only perfect matches are allowed.

(b)

Specifying the [Kind]

Select the type of access ([Reference/Substitution] (default), [Reference], or [Substitution]) from the drop-down list.

(c)

Specifying the [Value]

Enter an accessed variable value directly in the text box or select an input history item from the drop-down list (up to 10 history entries).

The variable value can be specified as a range of values. In this case, enter data in both the right and left text boxes to specify a range.

If the right-side text box is blank, the fixed variable value specified in the left-side text box is used to perform a search.

(d)

Specifying the [Number]

Specify a range of trace data to search by numbers displayed in the [Number] area of the Trace panel.

Specify start and end numbers in the left and right text boxes, respectively. (By default, "0" to "last number" are specified.)

Enter a number in decimal notation directly in the text box or select an input history item from the drop-down list (up to 10 history entries).

If the left-side text box is blank, the number "0" is assumed.

If the right-side text box is blank, the "last number" is assumed.

(e)

Clicking the [Search Backward] or [Search Forward] button

When you click the [Search Backward] button, a search is performed in the direction toward smaller numbers, with the searched spot put in selected state on the Trace panel.

When you click the [Search Forward] button, a search is performed in the direction toward larger numbers, with the searched spot put in selected state on the Trace panel.