Can anyone teach me how to step by step debug a kernel mode driver in
C++ source rathar than in DASM?
I am currently using DriverStudio 3.x but I don't know how to break a
driver. I've tried using DbgBreakPoint(), but it breaks in assembly
code. How can I debug in my C++ source?
also, if I issue GO command after breaking at DbgBreakPoint(), the
target system crash and reboot. How to solve it?
Besides Driver Studio, tutorials on how to debug kernel mode driver
in C++ source using WinDbg will also appreciated.

Thanks

David

Re: Driver debugging issue by Stephan

Stephan
Tue Aug 17 06:36:35 CDT 2004

Have a look at

http://www.microsoft.com/whdc/DevTools/Debugging/

Download the latest WinDbg there. Make sure to include the Symbol
Server in your symbols path.

WinDbg forum is "microsoft.public.windbg".

Stephan
---
On Tue, 17 Aug 2004 16:08:00 +0800, David <a@a.a> wrote:

>Can anyone teach me how to step by step debug a kernel mode driver in
>C++ source rathar than in DASM?
> I am currently using DriverStudio 3.x but I don't know how to break a
>driver. I've tried using DbgBreakPoint(), but it breaks in assembly
>code. How can I debug in my C++ source?
> also, if I issue GO command after breaking at DbgBreakPoint(), the
>target system crash and reboot. How to solve it?
> Besides Driver Studio, tutorials on how to debug kernel mode driver
>in C++ source using WinDbg will also appreciated.
>
> Thanks
>
>David

Re: Driver debugging issue by ernie

ernie
Tue Aug 17 08:01:13 CDT 2004

I think you only need to load symbols in the debugger.
Look under the options and specify a path, or make it load the symbols
you need manually when it breaks into the debugger.
If I remember well diverstudio handles also pdb files.

Regards,

e.

David wrote:
> Can anyone teach me how to step by step debug a kernel mode driver in
> C++ source rathar than in DASM?
> I am currently using DriverStudio 3.x but I don't know how to break a
> driver. I've tried using DbgBreakPoint(), but it breaks in assembly
> code. How can I debug in my C++ source?
> also, if I issue GO command after breaking at DbgBreakPoint(), the
> target system crash and reboot. How to solve it?
> Besides Driver Studio, tutorials on how to debug kernel mode driver in
> C++ source using WinDbg will also appreciated.
>
> Thanks
>
> David
>

Driver debugging issue by steve

steve
Wed Aug 18 06:58:52 CDT 2004

Use Compuware SoftIce kernel mode debugger - the only
product that allows you to step through kernel code
running on the same machine. Otherwise you need to use
windbg and have target and host machine.


>-----Original Message-----
>Can anyone teach me how to step by step debug a kernel
mode driver in
>C++ source rathar than in DASM?
> I am currently using DriverStudio 3.x but I don't
know how to break a
>driver. I've tried using DbgBreakPoint(), but it breaks
in assembly
>code. How can I debug in my C++ source?
> also, if I issue GO command after breaking at
DbgBreakPoint(), the
>target system crash and reboot. How to solve it?
> Besides Driver Studio, tutorials on how to debug
kernel mode driver
>in C++ source using WinDbg will also appreciated.
>
> Thanks
>
>David
>
>.
>