ACPI调试
Linux内核调试
Windows内核调试
 
  调试战役
调试原理
新工具观察
 
  Linux
Windows Vista
Windows
 
  Linux驱动
WDF
WDM
 
  PCI Express
PCI/PCI-X
USB
无线通信协议
 
  64位CPU
ARM
IA-32
  CPU Info Center
 
  ACPI标准
系统认证
Desktop
服务器
 
  Embedded Linux
嵌入式开发工具
VxWorks
WinCE
嵌入式Windows
沪ICP备05041459号
About AdvDbg Consult Train Services Products Tools Community Contact   登录 | 注册
Post Print Search
帖子排序:    
帖子发起人: Thomson   发起时间: 2008-11-12 19:18 PM   回复: 3
Thomson 离线,最后访问时间: 1/4/2009 9:48:32 PM Thomson

无等级
注册: 2008-07-03
发 贴: 34
能否在HOST与target之间通过windbg传文件?
 2008-11-12, 19:18 PM Reply Quote
host与target通过串口线相连,windbg已经从host连接到了target机器。能否在他们只间传文件?
IP 地址: 已记录   报告
Raymond 离线,最后访问时间: 1/6/2009 11:36:51 PM Raymond

无等级
注册: 2005-12-19
发 贴: 243
Re: 能否在HOST与target之间通过windbg传文件?
 2008-11-12, 20:53 PM Reply Quote
利用内核调试引擎的KD_FILE_IO功能和.kdfiles命令(《软件调试》18.6.9)可以向目标系统更新驱动程序。利用.dump命令可以在主机端保存转储信息。
除此以外,应该没有其它通用的文件传递功能。
IP 地址: 已记录   报告
Raymond 离线,最后访问时间: 1/6/2009 11:36:51 PM Raymond

无等级
注册: 2005-12-19
发 贴: 243
Re: 能否在HOST与target之间通过windbg传文件?
 2008-11-12, 22:39 PM Reply Quote
顺便说一下,.send_file命令(http://msdn.microsoft.com/en-us/library/cc266865.aspx)可以在远程调试时发文件。.readmem和.writemem可以分别把文件读到内存和把内存数据写到文件,但是文件都是在调试器本地。
IP 地址: 已记录   报告
Raymond 离线,最后访问时间: 1/6/2009 11:36:51 PM Raymond

无等级
注册: 2005-12-19
发 贴: 243
Re: 能否在HOST与target之间通过windbg传文件?
 2008-11-13, 22:15 PM Reply Quote
事有凑巧,OSR新闻组上也有人问类似的问题,下面是Skywing的回答:
Not that I know of; .kdfiles is a special thing that hooks in for mapping system image sections and isn't a general purpose transport mechanism, IIRC.

- S

-----Original Message-----

Sent: Wednesday, November 12, 2008 12:43 AM
To: Kernel Debugging Interest List
Subject: [windbg] Replacing non-system files using WinDBG (kdfiles)

Hi,

I have a need to replace non-system files (say, xyz.txt) in the target machine using WinDBG while debugging in kernel-mode. I am not able to replace it through .kdfiles. Is there a way to do this?

OS: Windows XP
Debug interface: 1394

Any help is appreciated.
IP 地址: 已记录   报告
高端调试 > 软件调试 > WinDbg > 能否在HOST与target之间通过windbg传文件?
 
Legal Notice Privacy Statement Corporate Governance Corporate Governance
(C)2004-2005 Advanced Debugging Ltd. All Rights Reserved.