Hello all,
I am first time doing kernel mode debugging. And I want to debug the
keyboard driver.Can u tell me how to debug?
I have done the setup and able to do the normal debug i.e. when I start both
computers all logs are displayed in the command view. I am using winDbg 5.0.
Then the os (target )gets loaded completely.Now I want to debug a specific
driver lets say kbd driver. How to add a breakpoint at that driver?Or is
there is any other way.
If I apply breakpoint while booting it asks me for the command. Now what to
do?
Can anybody help me?
Anand.
In proper setup, you can break execution, then open the source
file in WinDbg, then set a breakpoint (as if in VC++).
It must be red. If it is purple - then WinDbg was unable to set it
due to problems with symbols. Troubleshooting:
- delete the breakpoint back
- from the command line window, type
x yourdriver!*
it must print all symbols in your driver - if this does not work - check your symbol path (it must point to
the directory with your driver’s SYS and PDB files on host machine),
then say
.reload yourdriver.sys
You can also use “bp” command to set breakpoints from command
line. You can use “u” command to look at the code where you want to
set it.
Max
----- Original Message -----
From: “Anand Chaudhari”
To: “NT Developers Interest List”
Sent: Saturday, August 03, 2002 2:24 PM
Subject: [ntdev] How to debug a driver?
> Hello all,
> I am first time doing kernel mode debugging. And I want to debug
the
> keyboard driver.Can u tell me how to debug?
> I have done the setup and able to do the normal debug i.e. when I
start both
> computers all logs are displayed in the command view. I am using
winDbg 5.0.
> Then the os (target )gets loaded completely.Now I want to debug a
specific
> driver lets say kbd driver. How to add a breakpoint at that
driver?Or is
> there is any other way.
> If I apply breakpoint while booting it asks me for the command. Now
what to
> do?
> Can anybody help me?
> Anand.
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to %%email.unsub%%
>
Download and install the current version of WinDbg. You do NOT want to use
5.0 … You DO want WinDbg 6.0.0017.
–
Gary G. Little
xxxxx@broadstor.com
xxxxx@inland.net
“Maxim S. Shatskih” wrote in message
news:xxxxx@ntdev…
>
> In proper setup, you can break execution, then open the source
> file in WinDbg, then set a breakpoint (as if in VC++).
> It must be red. If it is purple - then WinDbg was unable to set it
> due to problems with symbols. Troubleshooting:
> - delete the breakpoint back
> - from the command line window, type
> x yourdriver!*
> it must print all symbols in your driver
> - if this does not work - check your symbol path (it must point to
> the directory with your driver’s SYS and PDB files on host machine),
> then say
> .reload yourdriver.sys
>
> You can also use “bp” command to set breakpoints from command
> line. You can use “u” command to look at the code where you want to
> set it.
>
> Max
>
> ----- Original Message -----
> From: “Anand Chaudhari”
> To: “NT Developers Interest List”
> Sent: Saturday, August 03, 2002 2:24 PM
> Subject: [ntdev] How to debug a driver?
>
>
> > Hello all,
> > I am first time doing kernel mode debugging. And I want to debug
> the
> > keyboard driver.Can u tell me how to debug?
> > I have done the setup and able to do the normal debug i.e. when I
> start both
> > computers all logs are displayed in the command view. I am using
> winDbg 5.0.
> > Then the os (target )gets loaded completely.Now I want to debug a
> specific
> > driver lets say kbd driver. How to add a breakpoint at that
> driver?Or is
> > there is any other way.
> > If I apply breakpoint while booting it asks me for the command. Now
> what to
> > do?
> > Can anybody help me?
> > Anand.
> >
> >
> > —
> > You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> > To unsubscribe send a blank email to %%email.unsub%%
> >
>
>
>
>