Reading Windows core programming always wants to understand every detail, so it is essential to debug the kernel,
You do not want to use the local kernel in Win7 for debugging. Simply come up with "Hanjiang standalone fishing" to configure the virtual machine, dual-machine debugging of the XP system. After all, WinDbg is a debugger supported by Microsoft. Although OllyDbg is also excellent, it can debug the kernel and system mechanism,
Learn how to use WinDbg. Www.2cto.com 1. Install the pure Win XP operating system under VMware. 2. Download WinDbg that complies with the operating system version (http://msdn.microsoft.com/en-us/windows/hardware/
Gg463009.aspx. 3. Set the boot. ini file of the virtual machine operating system. The boot. ini file is a hidden attribute. You need to set the folder option.
Open it with notepad, edit it later, and fill in the following content. (For Windows 7 system settings, Google) multi (0) disk (0) rdisk (0) partition (1) \ WINDOWS = "Microsoft Windows XP Professional Debug"/noexecute = optin/fastdetect/debug/debugport = com1/baudrate = 115200
4. set the virtual serial port of the virtual machine ). run VMware and click "Edit virtual machine settings" 2 ). click "Add" to run VMware's Hardware Wizard3 ). select "Serial Port" and click "Next" 4 ). select "Output to named pipe", and click "Next" 5 ). keep the default "\\. \ pipe \ com_1 "6 ). select "This end is the server. "(different VMware default options are different) 7 ). select "The other end is an application. "8 ). check "Connect at power on" 5. set WinDbg and create a desktop shortcut. Add the following running parameters after viewing the target items in the properties.
Name this shortcut VMWinDbg for dual-machine debugging. Www.2cto.com C: \ windbg \ windbg.exe-B-k com: port =\\\ pipe \ com_1, baud = 115200, pipe
After completing the above steps, the basic settings are complete. The setting symbol table will not be described in detail. Now, when the Virtual Machine System is started,
Select Start debugging program.
When VMWinDbg is enabled on the host, you can find that the virtual serial port has been connected to the virtual machine system and can perform kernel debugging.
PS: If debugging still fails, you can start the Virtual Machine (non-debugging) normally. In the Device Manager, run the COM1 serial port
Set "number of items per second" to 115200.
Author revfish