• [收藏]使用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:

  • 相关阅读:
    【杭电】[2035]人见人爱A^B
    【杭电】[2014]青年歌手大奖赛_评委会打分
    【杭电】[2014]青年歌手大奖赛_评委会打分
    【杭电】[2018]母牛的故事
    【杭电】[2018]母牛的故事
    SQL 01: 数据库表的三种关系
    History : The Age of the Samurai(11851868)
    History : Pictures of History 2
    JQuery 07 事件2
    JQuery 07 事件1
  • 原文地址:https://www.cnblogs.com/oyjj/p/2132907.html
Copyright © 2020-2023  润新知