windbg 驱动调试_第1页
windbg 驱动调试_第2页
windbg 驱动调试_第3页
windbg 驱动调试_第4页
windbg 驱动调试_第5页
已阅读5页,还剩4页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、本文主要记录个人安装VMware+Windgb+Win7内核驱动调试的笔记。一、安装环境1 主机:Windows Vista Bussiness2 虚拟机:VMware 73 GUestOS: Win74 Windbg: 6.11 二、虚拟机配置打开相应 vmware 虚拟机上的 “Virtaul Machine Settings“2.“Hardware”选项中 -> 点击“Add”添加一个串口设备 SeriallPort .3.”Next”,在 “Serial Port” 里选中 “Output to named pipe”4.”next”,然后如下设置:5.确定之后,回到如下界面,在

2、右脚”Virtual Machine Settings” 页面时,在“I/O Mode” 里选中“Yield CPU on poll“6. Ok之后就设定完毕了。三、Windbg设置下载地址: Windbg安装之后,设置一个桌面快捷方式,然后,右键->属性,在Target中的引号后面添加如下:-b -k com:pipe,port=.pipecom_1,resets=0或者是: -b -k com:port=.pipecom_1,baud=115200,pipe 【二者似乎皆可】四、GuestOS设置Vista和XP不同, 没有boot.ini文件, 需要用bcdedit进行启动设置。1

3、. 在administrator权限下, 进入command line模式, 键入bcdedit命令, 会出现以下界面:2. 然后, 设置端口COM1, baudrate为115200 (除COM1外, 也可以用1394或USB. 1394用起来比COM口快多了, 当然前提是你需要有1394卡及其驱动. 很恶心的是Vista不再支持1394的文件传输协议, 但是用windbg双机调试还是可以的)命令为:bcdedit /dbgsettings serial baudrate:valuedebugport:value | 1394 channel:value | usb 3.接着, 我们需要复制

4、一个开机选项, 以进入OS的debug模式命令为:bcdedit /copy current /d DebugEntyDebugPoint 为选项名称, 名字可以自己定义. 然后复制得到的ID号.4. 接着增加一个新的选项到引导菜单bcdedit /displayorder current ID这里的ID的ID值是刚 生成的ID值.5. 激活DEBUG : bcdedit /debug ID ON这里的ID 的ID值还是刚才的ID值.6. 命令执行成功后, 重新启动机器.或者更简单的图形界面设置:在msconfig界面中,选Boot,再选Advanced options,在选择Debug、De

5、bug port、Baud rate都打上钩。如果所示:7. 选择DebugEntrydebug作为等入口。启动后,打开windbg.可以看到类似如下的信息:Microsoft (R) Windows Debugger Version 6.11.0001.404 X86Copyright (c) Microsoft Corporation. All rights reserved.Opened .pipecom_1Waiting to reconnectConnected to Windows 7 7600 x86 compatible target at (Thu Dec 10 17:46:

6、36.928 2009 (GMT+8), ptr64 FALSEKernel 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 .relo

7、ad 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

8、 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 compatibleProduct: WinNt, suite: TerminalServer SingleUserTSBuilt by: 7600.16385.x86fre.win7_rtm.090713-1255Machine Name:Kernel base = 0x83e0f000

9、PsLoadedModuleList = 0x83f57810Debug session time: Thu Dec 10 17:46:32.658 2009 (GMT+8)System Uptime: 0 days 0:06:18.429Break 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 machines 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!Db

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

最新文档

评论

0/150

提交评论