The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: raleeper on June 12, 2007, 10:13:36 AM

Title: WinDbg - Source Path
Post by: raleeper on June 12, 2007, 10:13:36 AM
I once kept my source and executable in h:\masm32\.  I then moved lfw.asm and other lfw files to h:\lfw\.

Now WinDbg opens h:\lfw\lfw.asm as it should, but I cannot find a way to disabuse it of the idea that it should also open h:\masm32\lfw.asm [which no longer exists].

This is the shortcut I use to start WinDbg:

    "C:\Program Files\Debugging Tools for Windows\windbg.exe" h:\lfw\lfw.exe

I have tried adding "/srcpath h:\lfw " before "h:\lfw\lfw.exe".

I do not use any environmental variables.

I assemble and link with the batch file:

    (c:\aw.bat)

h:
cd lfw
h:\masm32\bin\ml /c /coff /Cp /Fl /W2 /Zi lfw.asm >errs
h:\masm32\bin\link /SUBSYSTEM:WINDOWS /LIBPATH:h:\masm32\lib /DEBUG /DEBUGTYPE:CV lfw.obj >>errs
cd\
c:

I have tried using full path specifications in the batch file.


Any idea how I can stop windbg from trying to open the old source file?

Thanks.
Title: Re: WinDbg - Source Path
Post by: raleeper on June 12, 2007, 11:37:21 AM
Never mind.

I just closed the bad source window and moved the right one into its place.  Windbg remembered.