Trying to debug Windows XP using WinDBG on a Mac OSX computer.
Purpose:
A how-to to set up WinDBG on Mac OSX using two virtual machines (Windows 7 & Windows XP)
Requirements:
- VirtualBox
- Windows 7 virtual machine (Debugger)
- Windows XP virtual machine (Debuggee)
- Mac OSX (host machine)
Steps:
- Install WinDBG on debugger virtual machine (vm).
Download link: http://www.microsoft.com/en-us/download/confirmation.aspx?id=8279 - Go to VirtualBox Manager and click on settings for the debugger vm
Click on Settings (yellow circle) - Navigate to the "Ports" tab and fill in the information from the below picture (you should not have to change the default IRQ and I/O Port)
- Click "OK" and then click on settings for the debuggee vm
- Navigate to the "Ports" tab and fill in the information from the below picture (you should not have to change the default IRQ and I/O Port)
- Click "OK" and start the debugger vm THEN the debuggee vm (if done the other way around, Virtualbox may pop up an error message about the path to the pipe file)
- In the debuggee vm, click on Start-->Run then type "bootcfg /debug on /port com1 /baud 115200 /id 1" into the text box (without the surrounding quotes "") then press "OK"
- Shutdown the debuggee vm
- Go to the debugger vm and start WinDBG
- Click File-->Kernel Debug then navigate to the "COM" menu and ensure that the information matches that of the below picture
- Boot up the debuggee vm and WinDBG should display something like the following:
- If so, it is working and you will have to wait for the debuggee OS to load. As this is happening, more information will show in the Command box of WinDBG. You are free to use WinDBG now.
Follow the install instructions from the link on the download page
NOTE: If you want to use your debuggee vm without debugging it from the debugger vm, simply uncheck the "Enable Serial Port" box from the vm's settings under the "Ports" tab and press "OK"
No comments:
Post a Comment