I just wanted to share something really really interesting. I found out that Bochs has this really helpful GUI debugger. It can dump GDT, IDT, stack, page table, memory addresses. Very useful tool for somebody who knows how to use it. It is much simpler to use this GUI debugger than any other textual one.
Here is an example of what it can be used for:
GDT debugging:
[Picture 1: GDT loaded by GRUB]
[Picture 2: a custom proper GDT]
How to activate it:
Open your Bochs configuration file and paste this:
Code: Select all
display_library: sdl, options=gui_debug
magic_break: enabled=1
By doing this you will automatically get this screen every time you run your OS In Bochs. Also by enabling so called magic break your OS will automatically stop and let you debug. You need to do
in order to insert a breakpoint. (Assembly file)
i created this topic to show how amazed I was when I discovered it. This will make me stop hating debugging so much.