1.在被调试机上
BOOT.INI设置调试系统启动选项:[operating systems]节中加入一行,
" multi(0)disk(0)rdisk(0)partition(1)/WINDOWS="Microsoft Windows XP Professional - debug" /fastdetect /debug /debugport=com1 /baudrate=115200 "
2. 关闭系统。配制虚拟机的硬件,点击 "Edit virtual machine settings",添加一个Serial Port,
选择"Output to named pipe",然后下一步,第一框里保持默认的 "//./pipe/com_1"
第二框里选"This end is the server."
第三框里选"The other end is an VIRTUAL MACHINE."
选中 "Connect at power on"
然后点击 "Advanced---->>" 然后在新窗口中选中 "Yield CPU on poll"。保存退出。
3. 在调试机上
创建一个WinDbg的快捷方式。快捷方式的命令行为
"C:/Program Files/Debugging Tools for Windows/windbg.exe" -y C:/Windows/Symbols/ -b -k com:port=com1,baud=115200
关机,添加一个串口,
选择"Output to named pipe",然后下一步,第一框里保持默认的 "//./pipe/com_1"
第二框里选"This end is the CLIENT."
第三框里选"The other end is an VIRTUAL MACHINE."
选中 "Connect at power on"
然后点击 "Advanced>>" 然后在新窗口中选中 "Yield CPU on poll"。保存退出。
4.打开被调试的虚拟机,启动时选择调试状态,开启后,再运行调试机上的WINDBG快捷方式
用windbg + vmware 进行双虚拟机调试环境的搭建
最新推荐文章于 2022-09-20 17:53:34 发布