我已经在Windows 7上调试了虚拟机(管道连接)上的驱动程序。现在我想在带有Windows 7(x64)的笔记本电脑上调试驱动程序,但WinDbg会一直等待连接:内核调试通过串口的Windows 7
Microsoft(R)Windows调试版本6.7.0005.1版权所有(c) 微软公司。版权所有。
打开\ \ COM1等待重新连接......
在目标笔记本电脑,我用这个BCD启动项:
Identificador {current} device partition=C: path \windows\system32\winload.exe description DebugEntry locale es-ES inherit {bootloadersettings} recoverysequence {b3c5a314-b064-11df-ba01-a8d3a819aefa} recoveryenabled Yes bootdebug Yes osdevice partition=C: systemroot \windows resumeobject {b3c5a312-b064-11df-ba01-a8d3a819aefa} nx OptIn detecthal Yes debug Yes
目标调试设置为:
C:\windows\system32>bcdedit /dbgsettings debugtype Serial debugport 1 baudrate 115200
波特率在主机和目标中都是一样的,因为我这样启动调试器:
WINDBG.EXE -k COM:端口= COM ,波特=
,因为我以前用过,其实当我监视COM1中的电缆适用于内核调试目标机器我可以看到来自WinDbg的轮询消息,甚至是Control + Break消息......但没有任何反应。
正如所料,串行端口在两个BIOS设置中均处于启用状态。
而且,似乎Windows未在启动时等待FOT超时的COM 1,能正常开机没有延迟...
有什么建议?
你确定你的笔记本电脑有一个“真正的”COM端口,而不是USB-COM或PCMCI-COM? – 2013-02-14 12:45:05
不是,[规格](http://h18000.www1.hp.com/products/quickspecs/13616_ca/13616_ca.PDF)只是说“串行端口”。 “设备管理器”中的串口属性对我无帮助。也许打开笔记本电脑外壳? – zapador 2013-02-14 14:36:38
作为替代方案,您可以使用1394端口(火线)进行调试。它工作得更快。 – 2013-02-14 19:20:02