虛擬機 VMware Workstation + Windbg 調試驅動
Posted on 2008-10-09 16:16 S.l.e!ep.¢% 閱讀(434) 評論(0) 編輯 收藏 引用 所屬分類: Windows WDM 、Unknown1、設置真實主機的COM口屬性
右擊 My Computer 屬性, -> Hardware -> Device Manager ->?Ports(COM & LPT) -> Communications Port(COM1) -> 右鍵屬性 -> Port Settings -> 將 Bits per second 改為 115200
2、虛擬機中裝系統了,我用的是WinXP SP2。安裝完成后修改boot.ini文件。在里面[operating systems]節中加入一行,
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin
/fastdetect
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin
/fastdetect
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional - Debug"
/fastdetect /debug /debugport=com1 /baudrate=115200
/fastdetect /debug /debugport=com1 /baudrate=115200
?
3、
配制虛擬機的硬件,點擊 "Edit virtual machine settings",添加一個Serial Port,選擇"Output to named pipe",然后下一步,第一框里保持默認的 "\\.\pipe\com_1"
第二框里選"This end is the server."
第三框里選"The other end is an application."
選中 "Connect at power on"
然后點擊 "Advanced>>" 然后在新窗口中選中 "Yield CPU on poll", 保存退出。
4、
配制虛擬機的硬件,點擊 "Edit virtual machine settings",添加一個Serial Port,選擇"Output to named pipe",然后下一步,第一框里保持默認的 "\\.\pipe\com_1"
第二框里選"This end is the server."
第三框里選"The other end is an application."
選中 "Connect at power on"
然后點擊 "Advanced>>" 然后在新窗口中選中 "Yield CPU on poll", 保存退出。
4、
為使用方便,我們在桌面新建一快捷方式(桌面右鍵-新建-快捷方式),快捷方式的命令行為
"C:\Program Files\Debugging Tools for Windows (x86)\windbg.exe" -y C:\Windows\Symbols\ -b -k com:pipe,port=\\.\pipe\com_1
5、
srv*C:\WINDOWS\Symbols*http://msdl.microsoft.com/download/symbols