Kernel Debugging: Difference between revisions
Jump to navigation
Jump to search
[unchecked revision] | [unchecked revision] |
Content added Content deleted
(Removed outdated data) |
|||
Line 46: | Line 46: | ||
That being said, there are also a lot of other advantages to using a VM. |
That being said, there are also a lot of other advantages to using a VM. |
||
For example, you don't have to reboot to test your new OS, you just start the VM. |
For example, you don't have to reboot to test your new OS, you just start the VM. |
||
Another virtual machine called Simics (https://www.simics.net) is capable not only of breakpoints and displaying register information, but it is also capable of opening a port for use with debugging with DDD (the simics command is 'gdb-remote'). Using this combination, it is possible to see your C source code as you step through the OS! However, the Bochs virtual machine is much faster at executing the OS than Simics and thus serves as a better virtual machine to ''run'' the OS, while Simics is the better ''debugger'' for those hard to find problems. |
|||
== Using the serial port == |
== Using the serial port == |