本文将对Windows平台下的内核调试中,对我们想要调试的用户态进程进行下断点等探索
1. 准备工作
见初探
2. 对调试目标程序下断点
我们在初探中已经提到对记事本进程进行观察的方法,这里我们将尝试对自己的进程下断点。在初探中,我们已经能看到了记事本的堆栈,在进行了.process操作之后,是不是就可以像普通调试一样下断点呢?
2.1 下断点之前的一些操作
windbg连接成功后,首先会出现
*******************************************************************************
* *
* You are seeing this message because you pressed either *
* CTRL+C (if you run kd.exe) or, *
* CTRL+BREAK (if you run WinDBG), *
* on your debugger machine's keyboard. *
* *
* THIS IS NOT A BUG OR A SYSTEM CRASH *
* *
* If you did not intend to break into the debugger, press the "g" key, then *
* press the "Enter" key now. This message might immediately reappear. If it *
* does, press "g" and "Enter" again. *
* *
******************************************************************************