This is what I remember, yes.bscreator wrote:So GDB only have problems if you change your processor mode, for example switching 16-32Bit, switching Real-/Protected Mode, is this correct ?
It depends on what you call "debugging". The qemu monitor (accessed with Ctrl-Alt-2) allows some inspection of the VM, including CPU state, memory dumps, TLB contents and some devices. It doesn't allow setting breakpoints or singlestepping or things like that.You need GDB for debugging in QEMU. Or is there another way for debugging/setting breakpoints in QEMU ?
You can, however, set a breakpoint in gdb and when that breakpoint stops the VM, you can inspect it both in gdb and in the qemu monitor. Generally, if you want to debug your kernel on a source code level, you'll want to do that in gdb, but if you're interested in machine state, you'll do it in the qemu monitor.