当前位置:网站首页>WinDbg virtual machine dual machine debugging driver file debugging
WinDbg virtual machine dual machine debugging driver file debugging
2022-06-11 03:07:00 【shlyyy】
Debugging of driver files
Preface
This article is for explanation WinDbg And virtual machine debugging driver .
Don't involve WinDbg And virtual machine configuration .
The debugging environment is WinDbg+VMware+Win7
One 、 Build debugging environment
Run the operating system in the virtual machine in debug state , Then with WinDbg Establishing a connection ·.

Two 、 Drop breakpoints in the driver to be debugged
1.WinDbg Open the driver file in



2. Drop breakpoints in the driver
First, the operating system in the virtual machine is interrupted , Then enter the command :bp CharConvertRing0!DeviceIoControlDispatch
among bp yes WinDbg Instruction of middle and lower breakpoints ,CharConvertRing0 Is the driver source file to debug ,DeviceIoControlDispatch Is the function to debug .

then g Command to keep the operating system running .
3、 ... and 、 Ready to debug
1. Load the driver file in the operating system of the virtual machine

2. In the operating system of the virtual machine vs Open the three ring program for debugging

Four 、 Start debugging
1.vs After the middle and lower breakpoints F5 Key start debugging .

2. In the function to debug F11 Key into the function
Here I am Ring3 call DeviceIoControl Function to send... To the driver IRP,IRP(IRP_MJ_DEVICE_CONTROL) Driven DeviceIoControlDispatch Dispatch functions to capture , So I went straight into DeviceIoControlDispatch function .

This can be like vs Same single step debugging , The shortcut keys for single step debugging are shown in the figure below :

3.WinDbg Other windows of
Can be in WinDbg View other windows in , Like a surveillance window Watch, Memory window Memory, Register window, etc .

summary
The boundless life is like a wilderness

边栏推荐
- B_ QuRT_ User_ Guide(19)
- Helm deploy traifik ingress
- Explication du cours de graphacademy: neo4j Graph Data Science Foundation
- sonarqube平台基础使用
- The new colleague asked me what "where 1=1" means???
- [big guy show] aiops in the eyes of Borui data, choosing the right track and the right people
- Wechat template message errCode ": 40165," errmsg ":" invalid web pagepath
- ASLR
- RS232/RS485转4G DTU 上传基于Modbus协议的温湿度传感器数据到远程TCP服务器
- OpenJudge NOI 1.13 17:文字排版
猜你喜欢

HUST Software Engineering (Experiment 2) -- TDD test driven development experiment.

Go 语言的优势和学习路线图

配置用命令行编译的环境-MSVC

【大咖秀】博睿数据眼中的AIOps,选择正确的赛道正确的人

B_QuRT_User_Guide(16)

Solr initialization failure: requesthandler INIT failure

CPT 102_ LEC 17

org. apache. solr. common. SolrException:Could not load core configuration for core hotel

怎样简洁明了地说清楚产品需求?

Live broadcast! Feature matching of orb-slam3 series (mlpnp, word bag model, etc.).
随机推荐
Location data fusion Table 3
蓝桥杯_小蓝吃糖果_鸽巢原理 / 抽屉原理
深入解析问号表达式
CocosCreator原生二次开发的正确姿势
B / Qurt Utilisateur Guide (19)
com. mchange. v2.c3p0. Combopooleddatasource red
配置用命令行编译的环境-MSVC
AOSP ~ logcat chatty line expired
org. apache. solr. common. SolrException:Could not load core configuration for core hotel
Manon's advanced road - Daily anecdotes
List filtering, sorting, verification and other processing methods
[long time series prediction] aotoformer code detailed [3] model overall architecture analysis
Can Xiaoxiang life become the "Yonghui" in the discount industry after the completion of the round a financing of tens of millions of yuan?
Net core Tianma XingKong series - Interface Implementation for dependency injection and mutual conversion of database tables and C entity classes
Looking at the ups and downs of the mobile phone accessories market from the green Union's sprint for IPO
TimeHelper
ORA-00392 ORA-00312 错误处理
6 best WordPress Image optimizer plug-ins to improve WordPress website performance
Unity项目优化详解(持续补充ing)
反射三种方式