problem in debugging.

Hello all,
I am using wingdb 5.0 and I am doing the kernel mode debugging for the
first time and I am stuck up at a step. I have a keyboard driver (checked
bhuild). I want to debug it on the test machine. I use win 2k on both
machines and using sp2.I have downloaded it’s symbol set from net.
Now I want any driver of my choice to be loaded. and I want to set a
breakpoint on it.How can I do this?what is the method to load a specific
driver in test machine? Or u people can provide me a sample code of driver
with instructions to proceed further.
Anand.

First, you need to upgrade to the current version of the debugger (6.0),
which is 2.5 years more recent than version 5.0.

To set a breakpoint, use the “bp” command. The current debugger has
extensive documentation, including on the syntax of commands to set
breakpoints on specific functions (e.g. “bp mydriver!DriverEntry”). There
are a lot of options here, so it is best to refer to the documentation.

You can get the current debugger right from the Microsoft web site -
http://www.microsoft.com/ddk/debugging.

Regards,

Tony

Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com

-----Original Message-----
From: xxxxx@yahoo.com [mailto:xxxxx@yahoo.com]
Sent: Saturday, August 03, 2002 12:25 PM
To: Kernel Debugging Interest List
Subject: [windbg] problem in debugging.

Hello all,
I am using wingdb 5.0 and I am doing the kernel mode debugging for the
first time and I am stuck up at a step. I have a keyboard driver (checked
bhuild). I want to debug it on the test machine. I use win 2k on both
machines and using sp2.I have downloaded it’s symbol set from net.
Now I want any driver of my choice to be loaded. and I want to set a
breakpoint on it.How can I do this?what is the method to load a specific
driver in test machine? Or u people can provide me a sample code of driver
with instructions to proceed further.
Anand.


You are currently subscribed to windbg as: xxxxx@osr.com
To unsubscribe send a blank email to %%email.unsub%%

Hello All,

Now I am able to apply a breakpoint in a file . But when the flow comes at
the breakpoint, it gives the control in my hand but the source code I see
on debugger is ASEMBLEY.Somebody told me to check the source path.I
checked that source path field and found it is already filled by the
debugger.I then again read the help and then I foung the .pdb file
reference.Then I searched the .pdb files in my project and I found a
handful .pdb files. I placed them in seprate folder and included that
folder in in symbol file path along with the original symbol file
path(windows symbols directory) but I dont understand the image path. help
says that it is the path of the binary executables. Shall I place the .exe
file path that simulates my driver. And after this, I again restart the
target machine but all in vain. I can see the breakpoint list using the bl
command but the debugger doesn’t staop at that location. I can see my
debug messages at that location means that part is in the flow. Why it
doesnt break?
One more thing… I have seen pleanty of error messages at the time of
booting indicating that the module is loaded but the symbols are not
loaded in the <>.dll file.
I copied a dump of that :

*** ERROR: Module load completed but symbols could not be loaded for
atl.dll
*** ERROR: Module load completed but symbols could not be loaded for
ntlanman.dll
*** ERROR: Module load completed but symbols could not be loaded for
netui0.dll
*** ERROR: Module load completed but symbols could not be loaded for
netui1.dll
*** ERROR: Module load completed but symbols could not be loaded for
netshell.dll
*** ERROR: Module load completed but symbols could not be loaded for
webcheck.dll
*** ERROR: Module load completed but symbols could not be loaded for
stobject.dll
*** ERROR: Module load completed but symbols could not be loaded for
batmeter.dll
*** ERROR: Module load completed but symbols could not be loaded for
msi.dll
*** WARNING: symbols timestamp is wrong 0x39cab2b9 0x37f5494c for
mobsync.exe
*** ERROR: Module load completed but symbols could not be loaded for
mobsync.exe
*** ERROR: Module load completed but symbols could not be loaded for
mobsync.dll
*** ERROR: Module load completed but symbols could not be loaded for
netman.dll

Is this is creating problem in breakpoints? I am now really
confused.Please help me.Sorry for the long mail.But I really need help.
Anand.
P.s. : is there any use of the VC option of creating driver or debugging
driver?When I installed the WDM eBook, It has created one more option in
the VC project creation menu and that is WDM Driver Wizard. That wizard
creates a project that can be compiled. What next? Have anybody used that?