I’d like to be able to put break points in both my User mode app and my
driver during the same session. Is there a way to do that?
Thanks,
–Jeremy
Yes and no. You can do user-mode debugging from kd but you have to deal
with some extra complexity so it isn’t really like a user-mode debugger.
Once your user-mode code is running you need to cause it to break into
kd (such as via putting a hard DebugBreak() in its startup). When that
break occurs do a .reload /user to get the right user-mode state.
Assuming your kd has access to your UM symbols you should be able to set
breakpoints in your UM code.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Jeremy Chaney
Sent: Wednesday, August 30, 2006 4:41 PM
To: Kernel Debugging Interest List
Subject: [windbg] Is it possible to debug a user mode and kernel program
at the same time?
I’d like to be able to put break points in both my User mode app and my
driver during the same session. Is there a way to do that?
Thanks,
–Jeremy
You are currently subscribed to windbg as: xxxxx@winse.microsoft.com To
unsubscribe send a blank email to xxxxx@lists.osr.com
This is all documented: See “Controlling the User-Mode Debugger from the
Kernel Debugger” in the WinDbg documentation.
A few starters:
I’ve never done this with WinDbg. Every now and then, I will use
SoftICE rarely for a couple of things that revolve around this issue of
breakpoints in both user and kernel modes. SoftICE lets you handle INT1
and INT3 differently for user mode and kernel mode in such a way
(hardware) that many software protection schemes that won’t run with
WinDbg attached will run under SoftICE or Visual SoftICE. So what
follows is the general idea, but you’ll have to do a little research for
the particulars.
If all you want to do is set a breakpoint in a user mode app and have
the breakpoint be reflected to the kernel debugger, just set a break
point in the appropriate context. You either have to disable just in
time user mode support (it is a registry key, I think under “Session
Manager.” You’ll have to look this one up. If you are debugging
something in user mode using WinDbg, and wish to kick it to the kernel,
see .breakin.
MM
>> xxxxx@telestream.net 2006-08-30 19:41 >>>
I’d like to be able to put break points in both my User mode app and my
driver during the same session. Is there a way to do that?
Thanks,
–Jeremy
You are currently subscribed to windbg as: xxxxx@evitechnology.com
To unsubscribe send a blank email to xxxxx@lists.osr.com