Hello all,
I want to debug a simple driver (I have keyboard driver from the sample
examples of DDK). How to proceed? I have 2 computers with windows 2000
installed in both and I have a null modem cable. But I don’t know how to
proceed further. If anybody can mail me detailed procedure hot to load the
driver in target machine and actually debug that it will be a great help.
Thank You.
Anand.
- Do a debug build of your driver.
- Install a debugger on the host, like WinDbg, and configure it
(clearly documented in the DDK Docs) - Load your driver as you would do, on the target.
- Check out the debugger commands from the docs and start debugging !
Not a detailed procedure i know …
Hope it helps …
p.s. you might want to check out the book - “The windows 2000 device
driver book” by Art Baker
which has a chapter on Debugging.
-----Original Message-----
From: Anand Chaudhari [mailto:xxxxx@lambenttek.com]
Sent: Thursday, August 01, 2002 6:29 PM
To: NT Developers Interest List
Subject: [ntdev] How To Debug A Kernel Mode Driver?
Hello all,
I want to debug a simple driver (I have keyboard driver from the sample
examples of DDK). How to proceed? I have 2 computers with windows 2000
installed in both and I have a null modem cable. But I don’t know how to
proceed further. If anybody can mail me detailed procedure hot to load
the driver in target machine and actually debug that it will be a great
help. Thank You.
Anand.
You are currently subscribed to ntdev as: xxxxx@wipro.com To
unsubscribe send a blank email to %%email.unsub%%
Get the windows debugging tools from
http://www.microsoft.com/DDK/Debugging/default.asp then read the help that
accompanies it. You may also want to download appropriate symbols from that
site (not necessarily required depending on if you choose to use the MS
symbol server or not).
Chris
----- Original Message -----
From: “Anand Chaudhari”
To: “NT Developers Interest List”
Sent: Thursday, August 01, 2002 8:58 AM
Subject: [ntdev] How To Debug A Kernel Mode Driver?
> Hello all,
> I want to debug a simple driver (I have keyboard driver from the sample
> examples of DDK). How to proceed? I have 2 computers with windows 2000
> installed in both and I have a null modem cable. But I don’t know how to
> proceed further. If anybody can mail me detailed procedure hot to load the
> driver in target machine and actually debug that it will be a great help.
> Thank You.
> Anand.
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@connecttech.com
> To unsubscribe send a blank email to %%email.unsub%%
On the target machine
Open the boot.ini file in the c:\
multi(0)disk(0)rdisk(0)partition(1)\WINNT=“Microsoft Windows NT4”
/fastdetect
Copy the above line and modify as below
multi(0)disk(0)rdisk(0)partition(1)\WINNT=“Microsoft Windows NT4 Debug”
/fastdetect /DEBUG /DEBUGPORT=COM1 /BAUDRATE=9600
Please noet that modify the /DEBUGPORT which I have writtem above to
reflect the COM port to which you have connected the NULL modem cable.
Also modify the Serial port settings such that it is having 9600 baud
rate (u may use other baud rates)
On the Host machine, configure Windbg to reflect the COM1 for kernel
debugging (if the NULL modem cable is connected to COM1 on host side)
Also modify the Serial port settings such that it is having 9600 baud
rate (u may use other baud rates, in which case u need to modify the
boot.ini accordingly)
Reboot the target machine and boot through the “Microsoft Windows NT4
Debug” option. On Host side you shhould have started the Windbg by this
time which will be waiting for signals from the COM port.
Regards,
Santhosh
-----Original Message-----
From: Girish Kulkarni
Sent: Thursday, August 01, 2002 6:46 PM
To: NT Developers Interest List
Subject: [ntdev] RE: How To Debug A Kernel Mode Driver?
- Do a debug build of your driver.
- Install a debugger on the host, like WinDbg, and configure it
(clearly documented in the DDK Docs) - Load your driver as you would do, on the target.
- Check out the debugger commands from the docs and start debugging !
Not a detailed procedure i know …
Hope it helps …
p.s. you might want to check out the book - “The windows 2000 device
driver book” by Art Baker
which has a chapter on Debugging.
-----Original Message-----
From: Anand Chaudhari [mailto:xxxxx@lambenttek.com]
Sent: Thursday, August 01, 2002 6:29 PM
To: NT Developers Interest List
Subject: [ntdev] How To Debug A Kernel Mode Driver?
Hello all,
I want to debug a simple driver (I have keyboard driver from the sample
examples of DDK). How to proceed? I have 2 computers with windows 2000
installed in both and I have a null modem cable. But I don’t know how to
proceed further. If anybody can mail me detailed procedure hot to load
the driver in target machine and actually debug that it will be a great
help. Thank You.
Anand.
You are currently subscribed to ntdev as: xxxxx@wipro.com To
unsubscribe send a blank email to %%email.unsub%%
You are currently subscribed to ntdev as: xxxxx@wipro.com
To unsubscribe send a blank email to %%email.unsub%%