[收藏]使用VMWare串口连接Windbg 官方文档说明 Examples: Debugging over a Virtual Serial Port

 

具体配置方法见:

http://blog.csdn.net/iamoyjj/archive/2010/01/12/5182106.aspx

http://blog.csdn.net/iamoyjj/archive/2010/01/12/5181073.aspx

 

官方的详细文档说明:

 

VMWare设置:

详见VMWare帮助文档

Examples: Debugging over a Virtual Serial Port
You can use Debugging Tools for Windows (WinDbg) or Kernel Debugger (KD) to debug
kernel code in a virtual machine over a virtual serial port. Download Debugging Tools
for Windows from the Windows DDK Web site at
www.microsoft.com/whdc/devtools/debugging/default.mspx.
The following two examples illustrate how to use a virtual serial port to debug kernel
code in a virtual machine:
With the debugging application on the Workstation host (Windows hosts only)
 With the debugging application in another virtual machine on the same
Workstation host (useful on a Linux host and can also be done on a Windows host)
Using either of these methods lets you debug kernel code on one system, without the
need for two physical computers, a modem, or a serial cable.
Debugging an Application in a Virtual Machine from the Windows Host
In this example, you have kernel code to debug in a virtual machine (called the target
virtual machine) and are running WinDbg or KD on your Windows host.
Workstation User’s Manual
342 VMware, Inc.
To debug an application from a Windows host
1 Prepare the target virtual machine, as described in “Connecting an Application on
the Host to a Virtual Machine” on page 336.
Make sure you configure the virtual machine’s virtual serial port as follows:
a Select This end is the server.
b Under I/O Mode, select the Yield CPU on poll check box, because the kernel
in the target virtual machine uses the virtual serial port in polled mode, not
interrupt mode.
2 Prepare the host: Make sure you have a recent version of Debugging Tools for
Windows—one that supports debugging over a pipe.
You need version 5.0.18.0 or higher.
3 Power on the virtual machine.
4 Make sure the serial port is connected, as follows: From the Workstation menu bar,
choose VM>Removable Devices.
On that menu, Serial<n> should be reported as //./pipe/<namedpipe> (on
Windows hosts) or /tmp/<socket> (on Linux hosts). If the serial port is not
connected, choose the virtual serial port and click Connect.
5 On the host, open a command prompt window and do one of the following:

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值