windows8 和 虚拟机XP 通过widbg进行双机调试

本文介绍了如何在Windows 8系统下利用Windbg与虚拟机中的XP进行双机调试。首先,需在Windows 8上安装Windbg并配置连接参数。接着,在虚拟机中设置串行端口并修改boot.ini文件,添加调试选项。最后,启动虚拟机选择调试模式,Windows 8的Windbg将连接成功,实现远程调试。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

windows8 和 虚拟机XP  通过widbg进行双机调试


1> windows8 安装好windbg。建立桌面快捷方式,右键属性,目标编辑框中追加 -b -k com:pipe,port=\\.\pipe\com_1,baud=115200,reconnect -y   注意在双引号外面
本机windbg的桌面快捷方式属性中的目标为"C:\Program Files (x86)\Windows Kits\8.1\Debuggers\x86\windbg.exe" -b -k com:pipe,port=\\.\pipe\com_1,baud=115200,reconnect -y
2>安装好虚拟机,装上XP操作系统。
  编辑虚拟机设置->添加->串行端口  
  使用命名管道  设置为: \\.\pipe\com_1   该端是服务器   另一端是应用程序
3>开启虚拟机XP
   打开C:\boot.ini,追加下面内容:
   multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional-Debug" /noexecute=optin /fastdetect /debug /debugport=com_1 /baudrate=115200
   整个boot.ini 文件内容如下:
   [boot loader]
   timeout=30
   default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
   [operating systems]
   multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect
   multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional-Debug" /noexecute=optin /fastdetect /debug /debugport=com_1 /baudrate=115200
4>启动虚拟机XP,选择"Microsoft Windows XP Professional-Debug"模式,然后打开windows8中的windbg快捷方式,会看到:
  Microsoft (R) Windows Debugger Version 6.3.9600.16384 X86
Copyright (c) Microsoft Corporation. All rights reserved.


Opened \\.\pipe\com_1
Waiting to reconnect...
Connected to Windows XP 2600 x86 compatible target at (Wed Jun  4 20:37:26.058 2014 (UTC + 8:00)), ptr64 FALSE
Kernel Debugger connection established.
Symbol search path is: *** Invalid ***
****************************************************************************
* Symbol loading may be unreliable without a symbol search path.           *
* Use .symfix to have the debugger choose a symbol path.                   *
* After setting your symbol path, use .reload to refresh symbol locations. *
****************************************************************************
Executable search path is: 
*********************************************************************
* Symbols can not be loaded because symbol path is not initialized. *
*                                                                   *
* The Symbol Path can be set by:                                    *
*   using the _NT_SYMBOL_PATH environment variable.                 *
*   using the -y <symbol_path> argument when starting the debugger. *
*   using .sympath and .sympath+                                    *
*********************************************************************
*** ERROR: Symbol file could not be found.  Defaulted to export symbols for ntkrpamp.exe - 
Windows XP Kernel Version 2600 MP (1 procs) Free x86 compatible
Built by: 2600.xpsp.080413-2111
Machine Name:
Kernel base = 0x804d8000 PsLoadedModuleList = 0x8055e720
System Uptime: not available
*** ERROR: Symbol file could not be found.  Defaulted to export symbols for ntkrpamp.exe - 
nt!RtlUnwind+0xdc0:
80532eb2 cc              int     3




说明已经成功
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值