Debugging environment to build

In Hello DTOS, the direct use of assembly language x86-based hardware completed the first master boot program, it is a great service.
Hello DTOS blog, there is a problem: There is no available debugging environment in the development process, when the master boot program more complex, the bug appears simply can not debug.
This blog will be available to build efficient debugging environment

Debugging environment to build (on)
issues: How to debug the code master boot?
Bochs (another excellent virtual machine software)
- Professional x86 architecture simulation of a virtual machine
- open source and highly portable, written in C ++ completed
- supported operating system development debug interrupt
- will be able to run through the vast number of simple configuration mainstream operating system

Supports debugging version of Bochs
1. Download Source: HTTPS: //sourceforge.net/projects/bochs/files/
2. Unzip-2.xxtar.gz- Bochs> Bochs-2.xx
3. into the source directory: cd 2.xx-Bochs
4. ./configure --enable-Debugger --enable-disasm
5. The the make
6. The the make the install the sudo

After the installation is complete bochs, run directly bochs, will collapse, and why?

Debugging environment to build (in)

- determining the bochs installation path (Which bochs)
- Installation vgabios (APT-GET the install vgabios)
- vgabios determining the installation path (the whereis vgabios)

Bochs boot files
#how much at The Memory Machine emulated by Will have have
megs: 32

#filename of ROM images

 

Guess you like

Origin www.cnblogs.com/-glb/p/11701363.html
Recommended