Microsoft KB Archive/72323

= PRB: CodeView Label/Function Search Fails for MASM 5.1 Labels =

Article ID: 72323

Article Last Modified on 10/23/2003

-

APPLIES TO


 * Microsoft CodeView 3.0
 * Microsoft CodeView 3.0
 * Microsoft CodeView 3.0
 * Microsoft CodeView 4.0
 * Microsoft CodeView 4.01
 * Microsoft CodeView 4.01
 * Microsoft CodeView 4.1
 * Microsoft CodeView 3.0
 * Microsoft CodeView 3.05
 * Microsoft CodeView 3.06
 * Microsoft CodeView 3.07
 * Microsoft CodeView 4.0
 * Microsoft CodeView 4.01
 * Microsoft CodeView 4.1

-



This article was previously published under Q72323



SYMPTOMS
An attempt to use the Label Search or Function Search command in CodeView versions 3.0 and later to find PROC labels in applications assembled with Microsoft Macro Assembler (MASM) versions 5.1 or 5.1a fails and CodeView generates the following message:

Error - Unknown symbol



CAUSE
This behavior is expected and reflects the differences in CodeView symbolic information in MASM versions 5.1 and 6.0 and the different methods used to interpret this information in CodeView versions 2.x and 3.x. CodeView version 2.2 finds PROC labels that are declared PUBLIC in code assembled with MASM versions 5.1 and 5.1a. CodeView versions 3.x and 4.x successfully find PROC labels in code assembled with MASM versions 6.0x and 6.1.



MORE INFORMATION
The code example below demonstrates this situation. Assemble the code in MASM version 5.1 or 5.1a and load it into CodeView version 3.0 or later. An attempt to perform a Label Search or a Function Search for &quot;func&quot; fails and CodeView generates one of the messages listed above. However, CodeView 2.2 finds the label and displays the relevant code on the screen.

Sample Code

 * Assembler options needed: /Zi
 * LINK options needed: /CO

.MODEL small .STACK .DATA msg    DB &quot;Hello&quot;, 13, 10, &quot;$&quot;

PUBLIC func            ; required by CodeView 2.2

.CODE start: mov ax, SEG msg mov ds, ax       call func mov ah, 4Ch int 21h

func   PROC mov ah, 09h mov dx, OFFSET msg dosint: int 21h ret func   ENDP

END start

Additional query words: 2.20 3.00 3.50 4.00 4.10

Keywords: kberrmsg kbbug kb16bitonly kbdebug kbprb KB72323

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.