版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 发电机保护的课程设计
- 电离辐射计量标准器具相关行业投资方案
- 心理教学设计引导学生正确处理心理问题
- 多瓣膜置换患者的护理
- 呼吸危重症护理
- 人音版 (五线谱)五年级上册音乐-4 《牧场上的家》 教案
- 垂体瘤的病人护理
- 2022年10月全国自考外科护理学(二)模拟试题含解析
- 数学-山西省三晋卓越联盟·山西省2024-2025学年度高三9月质量检测卷试题和答案
- 2023-2024学年江西省吉安市吉安县毕业升学考试模拟卷英语卷含答案
- 2024年眼镜验光员(技师)技能鉴定考试题库(含答案)
- 高考数学大一轮复习精讲精练(新高考地区)5.4三角形四心和奔驰定理(精讲)(原卷版+解析)
- 2024城市轨道交通供电系统智能运维应用实践
- 2024四川省成都市七中高二下学期6月月考物理试题及答案
- 解析:湖南省长沙市一中教育集团 2024-2025 学年七年级上学期期中语文试题(原卷版)
- 华泰财险附加团体境外人员绑架及非法拘禁保险(2019版)条款
- 中国富硒猪行业市场发展分析及发展趋势与投资方向研究报告
- GB/T 44087-2024北斗三号区域短报文通信用户终端技术要求与测试方法
- 2024年上海市普通高中学业水平等级性考试地理试卷(含答案解析)
- UG NX12.0基础与应用教程 教案全套 王元平 单元1-8 UG NX12.0软件的基础知识- 工程图基础操作
- 常见传染病防治知识培训
评论
0/150
提交评论