当前位置:网站首页>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(20)
- 巴歇尔槽流量计远程采集物联网关在明渠流量监测的应用
- org. apache. solr. common. SolrException:Could not load core configuration for core hotel
- Go 语言的优势和学习路线图
- [big guy show] aiops in the eyes of Borui data, choosing the right track and the right people
- Whether the outbound sequence is the inbound sequence
- How to use phpMyAdmin to optimize MySQL database
- cv. Houghcircles: Circular Hough transform opencv
- B_QuRT_User_Guide(18)
- Forest v1.5.22 release! Kotlin support
猜你喜欢

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

2022年熔化焊接与热切割操作证考试题库及答案

How to ensure reliable delivery of messages?

If you understand the logic of mining and carbon neutrality, you will understand the 100 billion market of driverless mining areas

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

Can Xiaoxiang life become the "Yonghui" in the discount industry after the completion of the round a financing of tens of millions of yuan?

CPT 102_ LEC 17

Cygwin reports an error child_ info_ fork::abort: XXX. dll: Loaded to different address: parent(XXX) != child(XXX)

HUST软件工程(实验2)--TDD测试驱动开发实验。

PIP installation Qt5.
随机推荐
cv. Matchtemplate image model matching opencv
CPT 102_ LEC 17
File file = new File(“test.txt“)文件路径
Android WiFi hide SSID
Will your company choose to develop data center?
com. mchange. v2.c3p0. Combopooleddatasource red
DNS Optimization Practice of APP network optimization
富络经典源码富络经典系统开发原理分享
Construction of Flink development environment and wordcount
Net core Tianma XingKong series - Interface Implementation for dependency injection and mutual conversion of database tables and C entity classes
Android WiFi hide SSID configuration method
AOSP ~ modify default volume
Whether the outbound sequence is the inbound sequence
马志强:语音识别技术研究进展和应用落地分享丨RTC Dev Meetup
B_ QuRT_ User_ Guide(19)
Go 语言的优势和学习路线图
TimeHelper
重磅直播!ORB-SLAM3系列之特征匹配(MLPnP、词袋模型等)。
Graphacademy course explanation: Fundamentals of neo4j graph data science
How to state clearly and concisely the product requirements?