Discussion:
Debugging DLL's using WinDbg - Not able set breakpoints ??
(too old to reply)
Vishak
2004-10-28 14:26:12 UTC
Permalink
Hello All,

I am pretty new to WinDbg. I am stuck -Please help !

I have an EXE from a thrid party vendor ( i don't have the .pdb file
or source for this EXE).
This EXE loads my custom COM DLL (this DLL has .pdb file and source
and this is the one i want to debug) through another DLL ( this DLL
doesn't have .pdb) at runtime.

I have set the WinDbg Symbols path to the DLLs pdb folder,
the source path and image path repectivity to the DLL source and
image.

What i am doing is , I do an Open Exectuable -> of the EXE and open
the source file of my DLL and try to set breakpoints.

But i am not able to set breakpoints in the DLL source files.

After reading throught the WinDbg documentation i understood that
breakpoints are set only for modules present in the loaded
application's module list.
Further i came across mention in the help about command :

.reload /s /f

to load a module not part of the target application's module list.
I gave a command as below :

.reload /s /f C:\tmp\my.dll
I get an error "my.dll" was not found in the image list.

But this too didn't work for me :(

What am i missing out ?? Any sort of help is appreciated.

Thanks in advance,

Regards,
Vishak
Satish
2004-11-02 10:18:06 UTC
Permalink
Try .reload /f "Path".
Also do lm it shows list of all modules
do x mydll!* it shows all the functions and then it is easy to set the break
points
Post by Vishak
Hello All,
I am pretty new to WinDbg. I am stuck -Please help !
I have an EXE from a thrid party vendor ( i don't have the .pdb file
or source for this EXE).
This EXE loads my custom COM DLL (this DLL has .pdb file and source
and this is the one i want to debug) through another DLL ( this DLL
doesn't have .pdb) at runtime.
I have set the WinDbg Symbols path to the DLLs pdb folder,
the source path and image path repectivity to the DLL source and
image.
What i am doing is , I do an Open Exectuable -> of the EXE and open
the source file of my DLL and try to set breakpoints.
But i am not able to set breakpoints in the DLL source files.
After reading throught the WinDbg documentation i understood that
breakpoints are set only for modules present in the loaded
application's module list.
..reload /s /f
to load a module not part of the target application's module list.
..reload /s /f C:\tmp\my.dll
I get an error "my.dll" was not found in the image list.
But this too didn't work for me :(
What am i missing out ?? Any sort of help is appreciated.
Thanks in advance,
Regards,
Vishak
Vishak
2004-11-08 10:32:44 UTC
Permalink
Hello Satish,

Thanks for your reply. I got it working !!!

Regards,
shine
Post by Satish
Try .reload /f "Path".
Also do lm it shows list of all modules
do x mydll!* it shows all the functions and then it is easy to set the break
points
Post by Vishak
Hello All,
I am pretty new to WinDbg. I am stuck -Please help !
I have an EXE from a thrid party vendor ( i don't have the .pdb file
or source for this EXE).
This EXE loads my custom COM DLL (this DLL has .pdb file and source
and this is the one i want to debug) through another DLL ( this DLL
doesn't have .pdb) at runtime.
I have set the WinDbg Symbols path to the DLLs pdb folder,
the source path and image path repectivity to the DLL source and
image.
What i am doing is , I do an Open Exectuable -> of the EXE and open
the source file of my DLL and try to set breakpoints.
But i am not able to set breakpoints in the DLL source files.
After reading throught the WinDbg documentation i understood that
breakpoints are set only for modules present in the loaded
application's module list.
..reload /s /f
to load a module not part of the target application's module list.
..reload /s /f C:\tmp\my.dll
I get an error "my.dll" was not found in the image list.
But this too didn't work for me :(
What am i missing out ?? Any sort of help is appreciated.
Thanks in advance,
Regards,
Vishak
Loading...