- (12-02)·WinDBG用法详解 PDF
授权形式: | 文档 | |
---|---|---|
更新时间: | 2015-12-02 14:44:26 | |
软件语言: | 简体中文 | |
软件平台: | WinXP,Win7,Win8,Win10 | |
软件类别: | 电子书 | |
文件大小: | 1.4M | |
评论等级: | ★★★★★ | |
浏览次数: | (今日:,本周:,本月:) |
软件简介
WinDBG用法详解 PDF
第30章WinDBG用法详解...................................................................................................1
30.1工作空间......................................................................................................................1
30.1.1分类............................................................................................................................1
30.1.2内容............................................................................................................................2
30.1.3存储............................................................................................................................2
30.1.4应用............................................................................................................................3
30.1.5删除............................................................................................................................3
30.1.6主题............................................................................................................................3
30.2命令概览......................................................................................................................3
30.2.1标准命令....................................................................................................................4
30.2.2元命令........................................................................................................................4
30.2.3扩展命令....................................................................................................................5
30.3用户界面......................................................................................................................6
30.3.1窗口概览....................................................................................................................6
30.3.2命令窗口和命令提示符............................................................................................8
30.4输入和执行命令.......................................................................................................10
30.4.1基本要点..................................................................................................................10
30.4.2注释..........................................................................................................................10
30.4.3别名.......................................................................................................................... 11
30.4.4伪寄存器..................................................................................................................12
30.4.5循环和条件执行......................................................................................................13
30.4.6进程和线程限定符..................................................................................................14
30.4.7记录到文件..............................................................................................................15
30.5建立调试会话...........................................................................................................15
30.5.1附加到已经运行的进程..........................................................................................15
30.5.2非入侵式调试..........................................................................................................16
30.5.3创建并调试新的进程..............................................................................................16
30.5.4调试内核目标..........................................................................................................17
30.5.5本地内核调试..........................................................................................................19
30.5.6调试转储文件..........................................................................................................19
30.5.7远程调试..................................................................................................................19
30.6终止调试会话............................................................................................................20
30.6.1停止调试..................................................................................................................20
30.6.2分离调试目标..........................................................................................................21
30.6.3抛弃被调试进程......................................................................................................21
30.6.4杀死被调试进程......................................................................................................21
30.6.5调试器异常终止......................................................................................................22
30.6.6重新运行调试程序..................................................................................................22
30.6.7调试器僵死..............................................................................................................22
30.7理解上下文................................................................................................................22
30.7.1会话上下文..............................................................................................................23
30.7.2进程上下文..............................................................................................................24
30.7.3寄存器上下文..........................................................................................................25
30.7.4局部(变量)上下文..............................................................................................25
30.8调试符号....................................................................................................................27
30.8.1重要意义..................................................................................................................27
30.8.2符号搜索路径..........................................................................................................28
30.8.3符号服务器..............................................................................................................28
30.8.4符号文件的加载过程..............................................................................................29
30.8.5观察模块信息..........................................................................................................32
30.8.6分析符号..................................................................................................................34
30.8.7搜索符号..................................................................................................................36
30.8.8设置符号选项..........................................................................................................36
30.8.9加载不严格匹配的符号文件..................................................................................38
30.9事件处理....................................................................................................................39
30.9.1调试事件与异常的关系..........................................................................................39
30.9.2两轮机会..................................................................................................................39
30.9.3定制事件处理方式..................................................................................................40
30.9.4GH和GN命令...........................................................................................................43
30.9.5实验...........................................................................................................................43
30.10控制调试目标..........................................................................................................44
30.10.1初始断点.................................................................................................................45
30.10.2俘获调试目标.........................................................................................................46
30.10.3单步执行.................................................................................................................48
30.10.4单步执行到指定地址.............................................................................................51
30.10.5单步执行到下一个函数调用.................................................................................52
30.10.6单步执行到下一分支.............................................................................................52
30.10.7继续运行.................................................................................................................53
30.10.8追踪并监视.............................................................................................................53
30.10.9程序指针飞跃.........................................................................................................56
30.10.10归纳.......................................................................................................................56
30.11使用断点...................................................................................................................57
30.11.1软件断点.................................................................................................................57
30.11.2硬件断点.................................................................................................................59
30.11.3条件断点.................................................................................................................60
30.11.4地址表达方法.........................................................................................................62
30.11.5设置针对线程的断点.............................................................................................62
30.11.6管理断点.................................................................................................................62
30.12观察栈.......................................................................................................................63
30.12.1显示栈回溯.............................................................................................................63
30.12.2观察栈变量.............................................................................................................65
30.12.3手工回溯栈.............................................................................................................67
30.13分析内存...................................................................................................................71
30.13.1显示内存区域.........................................................................................................71
30.13.2显示字符串.............................................................................................................71
30.13.3显示数据类型.........................................................................................................72
30.13.4搜索内存.................................................................................................................73
30.13.5修改内存.................................................................................................................74
30.13.6使用物理内存地址.................................................................................................76
30.13.7观察内存属性.........................................................................................................76
30.14遍历链表...................................................................................................................79
30.14.1结构定义.................................................................................................................80
30.14.2双向链表示例.........................................................................................................80
30.14.3单向链表示例.........................................................................................................81
30.14.4Dl命令.....................................................................................................................82
30.14.5!list命令..................................................................................................................83
30.15调用目标程序的函数.............................................................................................84
30.15.1调用示例.................................................................................................................84
30.15.2工作原理.................................................................................................................84
30.15.3限制条件和常见错误.............................................................................................86
30.16命令程序...................................................................................................................87
30.16.1流程控制符号.........................................................................................................87
30.16.2变量.........................................................................................................................87
30.16.3命令程序示例.........................................................................................................88
30.16.4执行命令程序.........................................................................................................90
30.17控制进程和线程......................................................................................................91
30.17.1MulThrds程序.......................................................................................................91
30.17.2控制线程执行.........................................................................................................92
30.17.3多进程调试.............................................................................................................94
30.18本章总结.....................................................................................................................95