“等待连接到目标......”从VS2012调试内核模式驱动程序时。 [英] "Waiting to connect to target..." when debugging a kernel mode driver from VS2012.

查看:54
本文介绍了“等待连接到目标......”从VS2012调试内核模式驱动程序时。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好。 


我有两台通过串行线缆连接的Windows 7 64位计算机。我正在尝试在目标计算机上调试驱动程序并执行以下操作: 



    • 已安装干净的Win 7操作系统目标计算机。
    • 运行VS2012以配置具有串行连接的目标计算机。
    • 在64位平台上编译Win 7 Debug的驱动程序。
    • 从VS2012开始内核调试器。 

似乎一切正常,但我无法破解。调试器立即窗口上的状态栏显示"等待连接到目标..."。没有任何事情发生。如果我尝试Debug-> Break All,则不会发生任何事情。任何人都可以建议我做错了吗?


调试器立即窗口中的输出是: 


------ -------------------------------------------------- ---------------

                 启动新的调试器会话        

-------------------------------------- ---------------------------------

--------- -------------------------------------------------- ------------



Microsoft(R)Windows调试器版本6.2.9200.16384 AMD64

版权所有(c )微软公司。版权所有(c)

)微软公司。保留所有权利。



已打开\\.\ com1

等待重新连接...

MYCOMPUTER\username(npipe WinIDE_01CD9CD4B230C19D)于2012年9月27日星期四10:22:40连接

[10:22:40:563]:从远程驱动程序文件夹中删除任何现有文件[10: 22:41:116]:从测试执行文件夹中删除任何现有文件

te.exe"%SystemDrive%\DriverTest \ Run \DriverTestTasks.dll" /选择:" @名称=" DriverTestTasks :: _ DriverRemoval"" /p:"InfFile=KMDFDemo.inf" / P:"调试等于1英寸; / P:" ImportDriver等于1英寸; / P:" RemoveDriver等于1英寸; / P:"硬件ID = Root\KMDFDemo" /p:"CertificateFile=KMDFDemoPackage.cer"
/ p:" PackageGuid = {A23BA0FC-7265-4E3C-B99F-1E7A04AD970D}" /rebootStateFile:%SystemDrive%\DriverTest\Logs\DriverTestReboot.xml / enableWttLogging / wttDeviceString:$ LogFile:file ="%SystemDrive%\DriverTest \ Logs \Driver_Removal_(x64)_(possible_reboot)_00022。 WTL",writemode =附加,编码= unicode的,nofscache =真,EnableLvl = QUOT; WexStartTest | WexEndTest | WexXml | WexProperty | WexCreateContext | WexCloseContext | *"
/ runas:Elevated [10:22:53:465]:结果摘要:总计= 1,通过= 1,失败= 0,被阻止= 0,警告= 0,跳过= 0 [10:22:53 :706]:从测试执行文件夹中删除任何现有文件

te.exe"%SystemDrive%\DriverTest \ Run \DriverTestTasks.dll" /选择:" @名称=" DriverTestTasks :: _ DriverPreparation"" /p:"InfFile=KMDFDemo.inf" / P:"调试等于1英寸; / P:" ImportDriver等于1英寸; / P:" RemoveDriver等于1英寸; / P:"硬件ID = Root\KMDFDemo" /p:"CertificateFile=KMDFDemoPackage.cer"
/ p:" PackageGuid = {A23BA0FC-7265-4E3C-B99F-1E7A04AD970D}" /rebootStateFile:%SystemDrive%\DriverTest\Logs\DriverTestReboot.xml / enableWttLogging / wttDeviceString:$ LogFile:file ="%SystemDrive%\DriverTest \ Logs \Driver_Preparation_(x64)_(possible_reboot)_00022。 WTL",writemode =附加,编码= unicode的,nofscache =真,EnableLvl = QUOT; WexStartTest | WexEndTest | WexXml | WexProperty | WexCreateContext | WexCloseContext | *"
/ runas:Elevated [10:23:02:965]:结果摘要:总计= 1,通过= 1,失败= 0,被阻止= 0,警告= 0,跳过= 0 [10:23:03 :208]:从测试执行文件夹中删除任何现有文件

te.exe"%SystemDrive%\DriverTest \ Run \DriverTestTasks.dll" /选择:" @名称=" DriverTestTasks :: _ RunProcess’" /p:"BinaryPath=%SystemDrive%\DriverTest\devcon.exe" / p:" Arguments = -f install%SystemDrive%\DriverTest \Drivers\KMDFDemo.inf Root \KMDFDemo" / P:" WorkingFolder =%系统驱动%\DriverTest\Drivers"
/rebootStateFile:%SystemDrive%\DriverTest\Logs\DriverTestReboot.xml / enableWttLogging / wttDeviceString:$ LogFile:file ="%SystemDrive%\DriverTest \ Logs \Driver_Install_(x64)_( possible_reboot)_00019.wtl",writemode =附加,编码= unicode的,nofscache =真,EnableLvl = QUOT; WexStartTest | WexEndTest | WexXml | WexProperty | WexCreateContext | WexCloseContext | *"
/ runas:Elevated [10:23:11:280]:结果摘要:总计= 1,通过= 1,失败= 0,被阻止= 0,警告= 0,跳过= 0 [10:23:19 :625]:从测试执行文件夹中删除任何现有文件

te.exe"%SystemDrive%\DriverTest \ Run \DriverTestTasks.dll" /选择:" @名称=" DriverTestTasks :: _ DriverPostInstall"" /rebootStateFile:%SystemDrive%\DriverTest\Logs\DriverTestReboot.xml / enableWttLogging / wttDeviceString:$ LogFile:file ="%SystemDrive%\DriverTest \ Logs \Driver_Post_Install_Actions_(x64)_(possible_reboot)_00022。 WTL",writemode =附加,编码= unicode的,nofscache =真,EnableLvl = QUOT; WexStartTest | WexEndTest | WexXml | WexProperty | WexCreateContext | WexCloseContext | *"
/ runas:Elevated [10:23:22:740]:结果摘要:总计= 1,通过= 1,失败= 0,被阻止= 0,警告= 0,跳过= 0 [10:23:22 :958]:驱动程序安装摘要:[10:23:22:966]: 司机搬迁(x64)(可能重启):通过[10:23:22:975]: 司机准备
(x64)(可能重启):通过[10:23:22:984]: 驱动程序安装(x64)(可能重启):通过[10:23:22:994]: 驱动程序安装后操作(x64)(可能重启):通过


解决方案

< blockquote>同样的问题。


Hello. 

I have two Windows 7 64-bit machines connected by a serial cable. I am trying to debug a driver on the target machine and I did the following: 

    • Installed clean Win 7 OS on the target machine.
    • Run VS2012 to provision the target machine with the serial connection.
    • Compiled the driver for Win 7 Debug on 64-bit platform.
    • Started the kernel debugger from VS2012. 

It seems that everything is OK, but I'm unable to break. The status bar on the debugger immediate window reads "Waiting to connect to target..." and nothing is happening. If I try to Debug->Break All, nothing is happening. Can anyone suggest what I'm doing wrong?

The output in the Debugger Immediate Window is: 

-----------------------------------------------------------------------
                  Starting New Debugger Session         
-----------------------------------------------------------------------
-----------------------------------------------------------------------

Microsoft (R) Windows Debugger Version 6.2.9200.16384 AMD64
Copyright (c) Microsoft Corporation. All rights reserved.


Microsoft (R) Windows Debugger Version 6.2.9200.16384 AMD64
Copyright (c) Microsoft Corporation. All rights reserved.

Opened \\.\com1
Waiting to reconnect...
MYCOMPUTER\username (npipe WinIDE_01CD9CD4B230C19D) connected at Thu Sep 27 10:22:40 2012
[10:22:40:563]: Removing any existing files from the remote driver folder[10:22:41:116]: Removing any existing files from test execution folder
te.exe "%SystemDrive%\DriverTest\Run\DriverTestTasks.dll" /select:"@Name='DriverTestTasks::_DriverRemoval'" /p:"InfFile=KMDFDemo.inf" /p:"Debug=1" /p:"ImportDriver=1" /p:"RemoveDriver=1" /p:"HardwareId=Root\KMDFDemo" /p:"CertificateFile=KMDFDemoPackage.cer" /p:"PackageGuid={A23BA0FC-7265-4E3C-B99F-1E7A04AD970D}" /rebootStateFile:%SystemDrive%\DriverTest\Logs\DriverTestReboot.xml /enableWttLogging /wttDeviceString:$LogFile:file="%SystemDrive%\DriverTest\Logs\Driver_Removal_(x64)_(possible_reboot)_00022.wtl",writemode=append,encoding=unicode,nofscache=true,EnableLvl="WexStartTest|WexEndTest|WexXml|WexProperty|WexCreateContext|WexCloseContext|*" /runas:Elevated[10:22:53:465]: Result Summary: Total=1, Passed=1, Failed=0, Blocked=0, Warned=0, Skipped=0[10:22:53:706]: Removing any existing files from test execution folder
te.exe "%SystemDrive%\DriverTest\Run\DriverTestTasks.dll" /select:"@Name='DriverTestTasks::_DriverPreparation'" /p:"InfFile=KMDFDemo.inf" /p:"Debug=1" /p:"ImportDriver=1" /p:"RemoveDriver=1" /p:"HardwareId=Root\KMDFDemo" /p:"CertificateFile=KMDFDemoPackage.cer" /p:"PackageGuid={A23BA0FC-7265-4E3C-B99F-1E7A04AD970D}" /rebootStateFile:%SystemDrive%\DriverTest\Logs\DriverTestReboot.xml /enableWttLogging /wttDeviceString:$LogFile:file="%SystemDrive%\DriverTest\Logs\Driver_Preparation_(x64)_(possible_reboot)_00022.wtl",writemode=append,encoding=unicode,nofscache=true,EnableLvl="WexStartTest|WexEndTest|WexXml|WexProperty|WexCreateContext|WexCloseContext|*" /runas:Elevated[10:23:02:965]: Result Summary: Total=1, Passed=1, Failed=0, Blocked=0, Warned=0, Skipped=0[10:23:03:208]: Removing any existing files from test execution folder
te.exe "%SystemDrive%\DriverTest\Run\DriverTestTasks.dll" /select:"@Name='DriverTestTasks::_RunProcess'" /p:"BinaryPath=%SystemDrive%\DriverTest\devcon.exe" /p:"Arguments=-f install %SystemDrive%\DriverTest\Drivers\KMDFDemo.inf Root\KMDFDemo" /p:"WorkingFolder=%SystemDrive%\DriverTest\Drivers" /rebootStateFile:%SystemDrive%\DriverTest\Logs\DriverTestReboot.xml /enableWttLogging /wttDeviceString:$LogFile:file="%SystemDrive%\DriverTest\Logs\Driver_Install_(x64)_(possible_reboot)_00019.wtl",writemode=append,encoding=unicode,nofscache=true,EnableLvl="WexStartTest|WexEndTest|WexXml|WexProperty|WexCreateContext|WexCloseContext|*" /runas:Elevated[10:23:11:280]: Result Summary: Total=1, Passed=1, Failed=0, Blocked=0, Warned=0, Skipped=0[10:23:19:625]: Removing any existing files from test execution folder
te.exe "%SystemDrive%\DriverTest\Run\DriverTestTasks.dll" /select:"@Name='DriverTestTasks::_DriverPostInstall'" /rebootStateFile:%SystemDrive%\DriverTest\Logs\DriverTestReboot.xml /enableWttLogging /wttDeviceString:$LogFile:file="%SystemDrive%\DriverTest\Logs\Driver_Post_Install_Actions_(x64)_(possible_reboot)_00022.wtl",writemode=append,encoding=unicode,nofscache=true,EnableLvl="WexStartTest|WexEndTest|WexXml|WexProperty|WexCreateContext|WexCloseContext|*" /runas:Elevated[10:23:22:740]: Result Summary: Total=1, Passed=1, Failed=0, Blocked=0, Warned=0, Skipped=0[10:23:22:958]: Driver Installation summary:[10:23:22:966]:   Driver Removal (x64) (possible reboot): Pass[10:23:22:975]:   Driver Preparation (x64) (possible reboot): Pass[10:23:22:984]:   Driver Install (x64) (possible reboot): Pass[10:23:22:994]:   Driver Post Install Actions (x64) (possible reboot): Pass

解决方案

Same issue here.


这篇关于“等待连接到目标......”从VS2012调试内核模式驱动程序时。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆