内核通过串口调试Windows 7

时间:2013-02-13 13:57:58

标签: debugging windows-7 driver windbg device-driver

我已经在Windows 7的VM(管道连接)上调试了驱动程序。现在我想在Windows 7(x64)的笔记本电脑中调试驱动程序,但WinDbg一直在等待连接:

  

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

Baudrate在主机和目标中都是相同的,因为我以这种方式启动调试器:

  

windbg.exe -k com:port = COM 1 ,baud = 115200

该电缆适用于内核调试,因为我以前使用它,实际上当我在目标机器中监视COM1时,我可以看到来自WinDbg甚至Control + Break消息的轮询消息......但没有任何反应

正如预期的那样,串行端口在两个BIOS设置中都已启用。

此外,似乎Windows在启动时没有等待COM 1的超时,它正常启动而没有延迟......

有什么建议吗?

1 个答案:

答案 0 :(得分:0)

目标计算机上的

请验证com端口是否正常工作。转到设备管理器并检查com端口属性。它可能已被禁用或其资源可能被分配给其他设备。