Operating system – debugging environment

1. Debugging system construction

A. The system construction requires a piece of other virtual machine software, here is Bochs
Bochs–it is an x86 hardware Open source simulator of the platform. It can simulate various hardware configurations. Bochs simulates the entire pc platform, including I/O devices, memory and BIOS. It is also a very portable open source IA-32 (x86) computer emulator written in C++, which can run on the most popular platforms. It emulates Intel x86 CPUs, common I/O devices, and customized BIOS.
Summarized as follows:
1. Professional simulation of x86 architecture virtual machine
2. Open source and highly transplanted, written in C++
3. Support breakpoint debugging in the development process of operating system
4. It can run most mainstream operating systems through simple configuration
Installation and configuration of B.Bochs
Operating system--Building of debugging environment
After the installation, the result is
Operating system-the establishment of debugging environmentThere will be an error here, because there is no configuration, the next job is to configure
1. Need to start Bochs Price for configuration
Operating system-debugging environment setup
2. The bochs virtual machine from
Display mode: bochs -f bcchsrc_file
Implicit mode: boch

Operating system-the establishment of debugging environment
3. The result after the configuration is completed-print the result on the virtual machine
Operating system--Building a debugging environment
What needs to be noted here is
1. Determine the installation path of bochs (which bochs)
2. Install vgabios (apt-get install vgabios)
3. Determine the installation path of vgabios (wh
ereis vgabios)
C. Common commands in Bochs
operating system--debug Setting up the environment
Summary 1. Bochs is a professional virtual machine that simulates the x86 architecture 2 .Install Bochs from the source code to get debugging support 3.Bochs startup configuration file is the key to correct operation 4.Bochs supports breakpoint debugging, and its debugging commands are similar to GDB

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 5380 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.