虚拟机设置

来源:互联网 发布:跟阿铭学linux 编辑:程序博客网 时间:2024/06/03 19:38
在VMWARE上创建一个com1串口
XP BOOT.ini(com1可能为com2,取决于vmware这端的ID,在c: \下,可以找到boot.ini通过控制面板中的“文件夹选项”,取消对系统文件的隐藏,才能看见,并右键该文件,在属性里,去掉只读属性)
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional -debug" /debug /debugport=com1 /baudrate=115200  /fastdetect
WIN7
bcdedit /dbgsettings serial baudrate:115200 debugport:1
bcdedit /copy {current} /d DebugEntry
bcdedit /displayorder {current} {d3d5f290-f64b-11de-a86d-aba3805c5629}红色部分请使用步骤2中的GUID
bcdedit /debug {d3d5f290-f64b-11de-a86d-aba3805c5629} ON
windbg.exe -k com:port=\\.\pipe\com_1,baud=115200,pipe 
符号设置:
srv*d:\symbols*http://msdl.microsoft.com/download/symbols;D:\Code\crash\Debug
Vista上DbgPrint启用
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Debug Print Filter 
“DEFAULT” : REG_DWORD : 0xFFFFFFFF


WIN7 X64禁用数字签名


无法下断点的原因分析?

bcdedit.exe -set loadoptions DDISABLE_INTEGRITY_CHECKS
bcdedit.exe -set TESTSIGNING ON
Restart your computer

0 0
原创粉丝点击