14.3. Searching multiple files

Select Find → Find in Files... to display the Find in Files dialog box, shown in Figure 14.2. Use this to:

Figure 14.2. Find in Files dialog box

Find in Files dialog box

Enter data into the following fields to specify the search:

Search For:

Enter the search string. Later you can limit the search by specifying how this string is used in the source file.

File Filter:

Use this field to specify the file types included in the search. You can limit the search to files having a particular extension or to files starting with a chosen letter. The file filter can also contain regular expressions built with the operators ?, *, [], and -not_match, for example [ms]*.c or [m?s?]*.[ch]. Click the File Filter button to display a list of previously used filters.

Working Dir:

This field contains the pathname of the default working directory which is the starting point for the search. You can click the Working Directory button to see a list of previously used pathnames to change this entry.

Search Type:

You can limit the search by specifying how the search string is used in the code. Select the usage you require from the Search Type list:

  • General String searches for a text string regardless of how it is used.

  • Variable/Function Use looks only for a string used as a variable or function parameter.

  • Function Definition finds strings in a function definition but does not find calls to the function.

  • Macro Definition finds strings in a macro definition but does not find calls to the macro.

  • Variable Definition searches for strings in a variable definition but does not match uses of the variable.

  • Class Definition searches for strings in a class definition but does not match uses of the class.

  • Pointer Variable Definition finds strings in a pointer variable definition. It does not match uses of the pointer variable nor does it find places where the variable was defined but not as a pointer.

  • Typedef Definition finds only strings that match the defined type.

Case Insensitive

Makes any searches case insensitive, that is treating uppercase and lowercase as identical. This is independent of the status of the check box on the Find, or the Find and Replace, dialog box.

Look in Subfolders

Includes subfolders when searching the working directory.

As you construct the search, the Find Command field shows the grep-style command that RealView Debugger runs. You can edit this command in this field. When the command is complete, click OK to start the search.

If you want to abandon the search, click the Cancel button and close the Find in Files dialog box, or click the Stop Build/Compile/Find button on the main toolbar.

Copyright © 2003, 2004 ARM Limited. All rights reserved.ARM DUI 0234B
Non-Confidential