Page 1 of 1

elf - dwarf

Posted: Mon Nov 30, 2009 10:49 am
by mcheung63
hi all
i want to add the "c level" single step trace for my peter-bochs , which is a bochs gui interface. Because bochs never know where we load the elf in memory, so I will add a button in my debugger. When you press it, it will ask you the memory address of the elf you have loaded to, and then it will ask you where is your elf file on host. Finally, when you catch the breakpoint in that address, you are able to single step trace your c source.
Is it helpful enough for os developer?
thanks
from Peter ([email protected])

Re: elf - dwarf

Posted: Mon Nov 30, 2009 10:56 am
by Owen
Perhaps - though GDB can be connected to both Bochs and QEMU

Re: elf - dwarf

Posted: Mon Nov 30, 2009 11:04 am
by mcheung63
yes, but we need to compile our kernel in multiboot format. Is it call "multiboot format? I forget it.