HP 3000 Manuals

Searching for a String in the Current File [ Symbolic Debugger/iX User's Guide ] MPE/iX 5.0 Documentation


Symbolic Debugger/iX User's Guide

Searching for a String in the Current File 

This section explains how to locate certain text elements in the current
source file.  For example, you can search for array elements and pointers
by name or you can search for arithmetic expressions.  You can search
forward or backward in the current file for any text string.  When you
reach the end of the current file, searching starts again at the
beginning.  Likewise, when searching backwards and you reach the
beginning of the current file, searching continues at the end of the
file.

The following example searches forward in the program for the string r:= 
0 and stops at the first occurrence of it.

     >/r:= 0

To search backward in a program for the string const n = 10, enter:

     >?const n = 10

String searches can be case sensitive or case insensitive.  Use the tc 
(toggle case) command to control case sensitivity.

Search strings will be matched exactly (possibly disregarding case).  All
characters are significant, including blank spaces.  If no match is
found, the current viewing location does not change.  Note that after
locating an occurrence of the search string, the debugger may not always
know what procedure the string was found in and will display Procedure:
Unknown in the location window.


NOTE To repeat a previous search command searching in the same direction, enter the n (next) command. To repeat the previous search command but search in the opposite direction, enter the N (Next) command.


MPE/iX 5.0 Documentation