Alternately, use Ctl+Alt+K to cycle to “Will request initial breakpoint at
next boot”. Once there, enter “bu mydriver!DriverEntry”, and given
everything else is copecetic, you should break at DriverEntry.
The personal opinion of
Gary G. Little
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Tim Roberts
Sent: Monday, October 26, 2009 12:20 PM
To: Kernel Debugging Interest List
Subject: Re: [windbg] Debugging a specific Driver (.sys file)
xxxxx@gmail.com wrote:
hope someone can help me. I’m quite stuck on this for a while and it’s
kinda urgent (sorry for the hassles). I just want to debug my specific
driver (.sys filer) using windbg in such a way that i can see the returns
and contents of the registers (eax, ebx, edx, etc.) and stack per line (if
possible). I’m a newbie in device driver programming/ device driver
debugging and have limited idea on how to do this.
You need to set a breakpoint at some function in your code using the
“bp” command, or as a last resort embed a DbgBreakPoint call in the
driver. After that, you can single step using the “t” and “p” commands
and watch the registers change.
–
Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.
WINDBG is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
__________ Information from ESET Smart Security, version of virus signature
database 4545 (20091026) __________
The message was checked by ESET Smart Security.
http://www.eset.com
__________ Information from ESET Smart Security, version of virus signature
database 4545 (20091026) __________
The message was checked by ESET Smart Security.
http://www.eset.com