Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/database/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Debugging 通过串口调试windows7的内核_Debugging_Windows 7_Driver_Windbg_Device Driver - Fatal编程技术网

Debugging 通过串口调试windows7的内核

Debugging 通过串口调试windows7的内核,debugging,windows-7,driver,windbg,device-driver,Debugging,Windows 7,Driver,Windbg,Device Driver,我用Windows7调试了VM(管道连接)上的驱动程序。现在我想调试Windows 7(x64)笔记本电脑中的驱动程序,但WinDbg一直在等待连接: Microsoft(R)Windows调试器版本6.7.0005.1版权所有(c) 微软公司。版权所有 已打开\.\com1正在等待重新连接 在目标笔记本电脑中,我使用以下BCD项启动: Identificador {current} device partition=C: path

我用Windows7调试了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 标识符{current} 设备分区=C: path\windows\system32\winload.exe 说明调试条目 语言环境 继承{bootloadersettings} 回收序列{b3c5a314-b064-11df-ba01-A8D3A819EFA} 可恢复是的 bootdebug是 osdevice分区=C: systemroot\windows resumeobject{b3c5a312-b064-11df-ba01-A8D3A819EFA} nx选择素 是的 调试是 目标上的调试设置为:

C:\windows\system32>bcdedit /dbgsettings debugtype Serial debugport 1 baudrate 115200 C:\windows\system32>bcdedit/dbgsettings 调试类型串行 调试端口1 波特率115200 波特率在主机和目标中都是相同的,因为我以以下方式启动调试器:

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

该电缆用于内核调试,因为我以前使用过它,事实上,当我监视目标机器中的COM1时,我可以看到来自WinDbg的轮询消息,甚至是Control+Break消息。。。但什么也没发生

串行端口按预期在两种BIOS设置中都已启用

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


有什么建议吗?

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

您确定您的笔记本电脑有一个“真正的”COM端口,而不是USB-COM或PCMCI-COM?不完全是,只需说“串行端口”。“设备管理器”中的串行端口属性对(我)帮助不大。也许打开笔记本电脑外壳?作为替代,您可以使用1394端口(firewire)进行调试。它工作得快多了。你得到这份工作了吗?我也有同样的问题。你是如何监视目标机器上的消息的?您还提到windows应该在引导期间等待,这是真的吗?我没有发现这方面的任何东西。我已经通过putty成功测试了两台电脑的连接。如何检查Com1的资源是否分配给其他设备?