Label-Finding Command Does Whole Word Search, Not Text Search

ID Number: Q49378

2.x 3.00 3.10 3.11 3.14 | 2.x 3.00 3.10 3.11 3.12 3.50

MS-DOS | OS/2

Summary:

The CodeView Debugger contains the Label option under the Search menu

for searching for a label. Unlike the Find option, which searches the

source code for any regular expression, the Label option searches the

executable code for an assembly language label.

This search is not a text search and does not accept regular

expressions. To find a label, specify the entire label name as the

search string. In addition, if the Case Sense option is selected on

the Options menu, the label will be found only if the case of each

character matches exactly.

More Information:

For example, if you want to find the code for the standard C

stack-checking function "_chkstk", choose Label from the Search menu,

type in "__chkstk" (without the quotation marks), and press ENTER.

This switches you into assembly mode, if you weren't there already,

and puts the line with the __chkstk label at the top of the window.

The two underscores are required because C appends an underscore to

the front of all labels (the original function name is "_chkstk").

You will receive the error message "Unknown Symbol" if the label

cannot be found or if you mistype or incompletely type the correct

name. For example, "_chkstk", "chkstk", "__chk", and "__chkstks" all

fail to find a match in the above example. If Case Sense is on,

searching for the label "__CHKSTK" also results in failure.

Additional reference words: 2.0 2.00 2.1 2.10 2.2 2.20 2.30 2.30 2.35

3.0 3.00 3.1 3.10 3.11 3.12 3.14 3.5 3.50