日期:2014-05-16 浏览次数:20562 次
原文地址:http://blog.csdn.net/ariesjzj/article/details/8289209
本站其它相关文章:
Windbg远程内核调试环境:Win7 to Win7 via 1394
http://blog.csdn.net/ariesjzj/article/details/7095346
设置WinDbg+ITP(硬件调试器)
http://blog.csdn.net/ariesjzj/article/details/7191857
环境:
Host:: Win 8
Guest:Win 8
VirtualBox:装有Guest系统
步骤:
1. 起VirtualBox,进guest,用管理员起命令行,运行:
> bcdedit /dbgsettings serial debugport:2
> bcdedit /debug ON
(*bcdedit ref: http://msdn.microsoft.com/en-us/library/windows/hardware/ff542187%28v=vs.85%29.aspx)
> bcdedit /dbgsettings
查看设置情况:
2. 关guest,在virtualbox 中Machine->Settings->Serial Ports中作如下设置:
3. 开Windbg,File->Kernel Debug,设置:
设置完成后Windbg等待连接。另外需要的话可以设置Symbol路径(File->Symbol file Path中加SRV*C:\symbols*http://msdl.microsof.com/download/symbols),这不是必需的,设完后在Windbg中可看到Kernel的symbol。
4. 起guest系统,启动时windbg自动连接:
相关文章:
http://angarciar.wordpress.com/2011/07/29/kernel-debugging-with-windbg-virtualbox-via-serial-port/
http://www.codeproject.com/Articles/130016/Setting-Up-Kernel-Mode-Debugger-in-Windows
http://www.personal.psu.edu/jdl5225/blogs/eportfolio/Instruction_Set.pdf