Label Command Does Whole Word Search, Not Text SearchLast reviewed: July 17, 1997Article ID: Q49378 |
2.20 3.00 3.11 3.14 4.0x 4.10 | 2.20 3.00 3.1x 3.50 | 3.x 4.0x 4.10 4.25
MS-DOS | OS/2 | WINDOWSkbtool The information in this article applies to:
SUMMARYThe CodeView debugger Search menu includes a Label command to search for a label. Unlike the Find command, which searches in the source code for any regular expression, the Label command searches the CodeView debugging information for an assembly language label. This search is not a text search and does not support regular expressions. To find a label, specify the name of the label as the search string. In addition, if the Case Sense option is selected in the Options menu, the label is found only if the case of each letter matches exactly.
MORE INFORMATIONFor example, to find the code for the standard C stack-checking function "_chkstk", choose Label from the Search menu, type "__chkstk" (two underscores but without quotation marks), and press ENTER. CodeView switches the display to assembly language mode, if it was not already, and positions the line with the label __chkstk at the top of the window. Two underscores are required because C prepends an underscore to every label (the original function name is "_chkstk"). If the label is not available, or if you type it in incorrectly, CodeView returns an "Unknown Symbol" error. For example, "_chkstk", "chkstk", "__chk", and "__chkstks" each fail to match the example above. If Case Sense is on, an attempt to find the label "__CHKSTK" also fails.
|
Additional reference words: kbinf 2.20 3.00 3.50 4.00 4.10
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |