warg
if it is your asm file ollydbg should find it
i thought you were looking for kernel32.inc files sources from your first post
anyway ill give an example here see whats wrong with your project if ollydbg cant find your own include file
Code:
iczelions tut-02 msgbox.exe source code taken as base example
.386
.model flat, stdcall
option casemap:none
include \masm32\include\windows.inc
include \masm32\include\kernel32.inc
include \masm32\include\user32.inc
includelib \masm32\lib\user32.lib
includelib \masm32\lib\kernel32.lib
.data
MsgCaption db "Iczelion's tutorial no.2",0
MsgBoxText db "Win32 Assembly is Great!",0
.code
start:
include blah.asm <------- addded blah.asm to this code
invoke MessageBox, NULL,addr MsgBoxText, addr MsgCaption, MB_OK
invoke ExitProcess,NULL
end start
blah.asm contains these lines
Code:
mov eax,30h
mov ebx,4h
add eax,ebx
i compiled and linked it like this
Code:
\masm32\bin\ml /c /coff /Zi "msgbox.asm"
\masm32\bin\Link /PDB:MSGBOX.PDB /PDBTYPE:SEPT /DEBUG /DEBUGTYPE:CV /SUBSYSTEM:WINDOWS /RELEASE "msgbox.obj"
output like this
Code:
test:\>dir /b
msgbox.asm
blah.asm
makeit.bat
test:\>makeit.bat
test:\>\masm32\bin\ml /c /coff /Zi "msgbox.asm"
Microsoft (R) Macro Assembler Version 6.14.8444
Copyright (C) Microsoft Corp 1981-1997. All rights reserved.
Assembling: msgbox.asm
test:\>
test:\>\masm32\bin\Link /PDB:MSGBOX.PDB /PDBTYPE:SEPT /DEBUG /DEBUGTYPE:CV /SUBS
YSTEM:WINDOWS /RELEASE "msgbox.obj"
Microsoft (R) Incremental Linker Version 5.12.8078
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
test:\>
test:\>dir /b
msgbox.asm
blah.asm
makeit.bat
msgbox.obj
msgbox.exe
MSGBOX.PDB
test:\>
lets load this file in ollydbg
ollydbg finds both the sources
Code:
Source files
Module Source Source path
MSGBOX BLAH.ASM D:\MASM32\ICZTUTES\TUTE02\WITHDEBUGINFO\blah.asm
MSGBOX MSGBOX.ASM D:\MASM32\ICZTUTES\TUTE02\WITHDEBUGINFO\msgbox.asm
in disassembly window
Code:
EAX=00401000 (MSGBOX.<ModuleEntryPoint>

blah.asm:1. mov eax,30h
msgbox.asm:17. invoke MessageBox, NULL,addr MsgBoxText, addr MsgCaption, MB_OK
a picture