"C:\Program Files\Debugging Tools for Windows (x86)\windbg.exe" -k com:pipe,port=\\.\pipe\com_1,baud=115200 -y E:\SourceCode\sys\objfre_wnet_x86\i386 -srcpath E:\SourceCode\sys
1. windbg.exe 快捷方式的目标设置为:
"D:\Common Tools\Debugging Tools for Windows\windbg.exe"
-k com:pipe,port=\\.\pipe\com_1,baud=115200
-y D:\code\vc6\DriverDev\MyDriver_Check
-srcpath D:\code\vc6\DriverDev
2. 虚拟机设置
选中Use named pipe:
\\.\pipe\com_1
This end is the server.
The other end is a virtual machine.
3. 修改BOOT.INI
[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="Windows Server 2003, Standard" /debug /debugport=COM1 /baudrate=115200 (COM1不能乱改,跟新建的com口不同)
4. vista
bcdedit /dbgsettings serial baudrate:115200 debugport:1 /debug on
驱动安装 rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 c:\eposdf.inf
驱动卸载rundll32.exe setupapi,InstallHinfSection DefaultUninstall 132 c:\eposdf.inf
5. 1: kd> !lmi tdifw_drv.sys查看DMP文件对应驱动的时间。
srv*D:\Symbols*http://msdl.microsoft.com/download/symbols;D:\Symbols;
SRV*D:\Symbols\*http://msdl.microsoft.com/download/symbols