ZC:我遇到的问题:com_1 怎么都不成功,记起来 貌似原来也遇到过这个问题,看了一下 VMware里面创建的是 "串行端口 2",于是 将 "com_1"改成"com_2",成功了。

ZC:  (1)、Windbg 快捷方式的里面需要修改  com_2

ZC:  (2)、Win7的 cmd中的 bcdedit命令里面也要是  端口2

VMware+Windgb+Win7 内核驱动调试 - 李sir - 博客园.html(http://www.cnblogs.com/lzjsky/archive/2010/12/14/1905248.html)

网页内容保存:

本文主要记录个人安装VMware+Windgb+Win7内核驱动调试的笔记。

一、安装环境

  1. 主机:Windows Vista Bussiness
  2. 虚拟机:VMware 7
  3. GUestOS: Win7
  4. Windbg: 6.11

二、虚拟机配置

打开相应 vmware 虚拟机上的 “Virtaul Machine Settings“

  [图01]

2.“Hardware ”选项中 —-> 点击“Add” 添加一个串口设备 SeriallPort .

  [图02]

3.”Next”,在 “Serial Port” 里选中 “Output to named pipe”

  [图03]

4.”next”,然后如下设置:

  [图04]

5.确定之后,回到如下界面,在右脚”Virtual Machine Settings” 页面时,在“I/O Mode” 里选中“Yield CPU on poll“

  [图05]

6. Ok之后就设定完毕了。

三、Windbg设置

下载地址: Windbg

安装之后,设置一个桌面快捷方式,然后,右键->属性,在Target中的引号后面添加如下:-b -k com:pipe,port=\\.\pipe\com_1,resets=0

  [图06]

或者是: -b -k com:port=\\.\pipe\com_1,baud=115200,pipe 【二者似乎皆可】

四、GuestOS设置

Vista和XP不同, 没有boot.ini文件, 需要用bcdedit进行启动设置。

1. 在administrator权限下, 进入command line模式,  键入bcdedit命令, 会出现以下界面:

  [图07]

2. 然后, 设置端口COM1, baudrate为115200 (除COM1外, 也可以用1394或USB. 1394用起来比COM口快多了, 当然前提是你需要有1394卡及其驱动. 很恶心的是Vista不再支持1394的文件传输协议, 但是用windbg双机调试还是可以的)
命令为:
bcdedit /dbgsettings {serial [baudrate:value][debugport:value] | 1394 [channel:value] | usb }

  [图08]

    ZC:举例子:bcdedit /dbgsettings serial baudrate:115200 debugport:1

3.接着, 我们需要复制一个开机选项, 以进入OS的debug模式
命令为:
bcdedit /copy {current} /d DebugEnty
DebugPoint 为选项名称, 名字可以自己定义. 然后复制得到的ID号.(ZC:这里,应该是说 "DebugEnty"吧?)

  [图09]

4. 接着增加一个新的选项到引导菜单
bcdedit /displayorder {current} {ID}
这里的{ID}的ID值是刚 生成的ID值.

  [图10]

5. 激活DEBUG : bcdedit /debug {ID} ON
这里的{ID} 的ID值还是刚才的ID值.

  [图11]

6. 命令执行成功后, 重新启动机器.或者更简单的图形界面设置:在msconfig界面中,选Boot,再选Advanced options,在选择Debug、Debug port、Baud rate都打上钩。如果所示:

  [图12]

7. 选择DebugEntry[debug]作为等入口。启动后,打开windbg.可以看到类似如下的信息:

Microsoft (R) Windows Debugger Version 6.11.0001.404 X86
Copyright (c) Microsoft Corporation. All rights reserved.

Opened \\.\pipe\com_1
Waiting to reconnect…
Connected to Windows 7 7600 x86 compatible target at (Thu Dec 10 17:46:36.928 2009 (GMT+8)), ptr64 FALSE
Kernel Debugger connection established.  (Initial Breakpoint requested)
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 7 Kernel Version 7600 MP (1 procs) Free x86 compatible
Product: WinNt, suite: TerminalServer SingleUserTS
Built by: 7600.16385.x86fre.win7_rtm.090713-1255
Machine Name:
Kernel base = 0x83e0f000 PsLoadedModuleList = 0x83f57810
Debug session time: Thu Dec 10 17:46:32.658 2009 (GMT+8)
System Uptime: 0 days 0:06:18.429
Break instruction exception – code 80000003 (first chance)
*******************************************************************************
*                                                                             *
*   You are seeing this message because you pressed either                    *
*       CTRL+C (if you run kd.exe) or,                                        *
*       CTRL+BREAK (if you run WinDBG),                                       *
*   on your debugger machine’s keyboard.                                      *
*                                                                             *
*                   THIS IS NOT A BUG OR A SYSTEM CRASH                       *
*                                                                             *
* If you did not intend to break into the debugger, press the “g” key, then   *
* press the “Enter” key now.  This message might immediately reappear.  If it *
* does, press “g” and “Enter” again.                                          *
*                                                                             *
*******************************************************************************
nt!DbgBreakPointWithStatus+0×4:
83e7a394 cc              int     3

五、操作方式提示

1. 我发现,如果在GuestOs -win7启动过程中,如果打开了windbg之后,整个系统就像死机,不动了。估计是windbg启动后设定了断点做调试,试试按F5,或者go这样就可以恢复原来的状态。

Z

转载于:https://www.cnblogs.com/DriverSkill/p/9024886.html

VMware调试.【转】VMware+Windgb+Win7 内核驱动调试相关推荐

  1. VMware+Windgb+Win7内核驱动调试

    -------------------------------------------------------------- VMware+Windgb+Win7内核驱动调试 ------------ ...

  2. win7(主机)+win7虚拟机(vmware,被调试机)+windbg配置内核驱动调试

    一.安装环境 主机:Windows 7 虚拟机:VMware 9 +win7(被调试机) Windbg: 6.12 二.虚拟机配置 1.右击虚拟机系统->设置->弹出虚拟机设置框-> ...

  3. MacOs 双真机内核/驱动调试

    一直在想这个macos可以windows一样使用windbg通过串口,1394和usb进行调试,这样就方便多了.看到资料, MacOs是可以使用以太网卡来调试的: 1. 先去developer.app ...

  4. Linux内核驱动调试,Linux内核设备驱动之内核的调试技术笔记整理

    /****************** * 内核的调试技术 ******************/ (1)内核源代码中的一些与调试相关的配置选项 内核的配置选项中包含了一些与内核调试相关的选项,都集中 ...

  5. linux 内核驱动 调试,QDMA Linux 内核驱动使用和调试指南

    BY Deepesh Man Shakya 注意:本论坛博客所有内容皆来源于Xilinx工程师,如需转载,请写明出处作者及赛灵思论坛链接并发邮件至cncrc@xilinx.com,未经Xilinx及著 ...

  6. WinXP内核驱动调试

    友链 使用vmware创建一个xp虚拟机,确保你是Administrator用户,打开cmd,cd进入C盘根目录 然后执行notepad boot.ini,内容应该是下面这样的 [boot loade ...

  7. 微信调试、手机QQ调试、Qzone之x5内核inspect调试解决方案

    一.微信webview调试方法   整个调试链路示意图如下:   具体调试环境搭建,请看下面流程分解(以微信调试为例进行阐述) 1.安装微信新版本,使用应用宝进行安装微信最新版,如下图: 2.下载Tb ...

  8. win7 x64驱动开发经验(三)windbg 双机调试配置 、问题及解决办法

    win7 x64驱动开发经验(三)windbg 双机调试配置 .问题及解决办法 http://www.cnblogs.com/witty/archive/2012/04/23/2466024.html ...

  9. WinCE驱动调试助手V2.5

    http://www.cnblogs.com/we-hjb/archive/2008/12/15/1280822.html http://blog.chinaunix.net/u1/49088/sho ...

最新文章

  1. log4j 配置详解
  2. 网络基础知识----------iptables
  3. 中科院计算机跨专业考研,2015考研复试:往届生和跨专业考生
  4. Python的解析式与生成器
  5. A star 算法 (Python)
  6. c语言的详细编译过程
  7. git文件gitignore修改后不生效
  8. 人民日报发推欢迎Google重返大陆,FB上长文阐述详细立场
  9. Python数据结构与算法(3.5)——双端队列
  10. 为什么SSD目标检测算法对小目标检测的效果不好
  11. C#学习系列之H264解码
  12. Windows10 文件夹按分组排序
  13. docker入门课程
  14. Linux之网络管理
  15. 千亿级宠物赛道,卖蚊香的朝云能“掘金”多少?
  16. 打峡谷之巅有眼缘 那不如我们自己写个猜数字 C语言
  17. Echarts-实现3D柱状图显示,并单个柱子变色
  18. [软件项目管理] BCWS、BCWP、ACWP的理解
  19. RK3288_Android_8.1_定频关机
  20. 阿里巴巴的卫哲现在在做的事

热门文章

  1. SpringMVC @RequestBody 接收Json数组对象
  2. Windows Server 2012 HyperV之SMB共享实时迁移
  3. WCF访问iis元数据库失败--解决方法
  4. 再谈HTTP2性能提升之背后原理—HTTP2历史解剖
  5. 爬虫抓取页面数据原理(php爬虫框架有很多 )
  6. spring aop xml事务配置
  7. 后台工具screen
  8. 【linux练习】基础作业一
  9. 统一沟通-技巧-11-Lync-联盟-1-MSN
  10. 交换机复习笔记 广播风暴抑制