Prevent current thread from being preempted while single-stepping my driver

When I debug my driver with single stepping, other threads will preempt current thread and run the buggy codes ahead of current thread, then crashed. Can I stop them all in Kernel mode?

Nope, no way to do that. You have to deal with it. One way is put breakpoints in those threads and debug multiple contexts together.

d

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of 007xgen@163.com
Sent: Monday, March 21, 2011 4:39 AM
To: Kernel Debugging Interest List
Subject: [windbg] Prevent current thread from being preempted while single-stepping my driver

When I debug my driver with single stepping, other threads will preempt current thread and run the buggy codes ahead of current thread, then crashed. Can I stop them all in Kernel mode?


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

Thanks doron, This is one of things I dislike in kernel debugging.

User mode debugging is pretty much the same thing if you have more than one active thread. Single stepping in one thread can allow others to execute as well.

d

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of 007xgen@163.com
Sent: Tuesday, March 22, 2011 12:28 AM
To: Kernel Debugging Interest List
Subject: RE:[windbg] Prevent current thread from being preempted while single-stepping my driver

Thanks doron, This is one of things I dislike in kernel debugging.


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