Hi... On Mon, Jul 6, 2009 at 8:04 PM, luca ellero<lroluk@xxxxxxxxx> wrote: > Hi all, > I'm trying to debug/trace early stages of kernel boot on x86 (just for fun > and learning). I mean very first stages when CPU is still in real-mode. > Since tools like printk/kdb/kgdb are not available at this early stages, the > best solution I found is using the debug program freedos with > freedos/loadlin. > I wonder if somebody have ever used this method and can give me some > suggestions (for example how to fix breakpoints or what happens when > switching to protected mode) or can suggest me some alternative methods > (maybe gdb+kexec?). I have no experience in such area, but have you tried Qemu? Try to hook gdb into Qemu's gdb stub. It's kinda controlling normal program via gdb though. Or if that's not sufficient, I think you need to go with Bochs. I read it at a glance, seems Bochs is the only tools that provide with detailed per instruction debugging. CMIIW people... regards, Mulyadi. -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ