On Sat, Oct 19, 2024 at 11:43:01AM +0200, Christian Schulte wrote: > Hi @misc, > > could someone point me to some documentation on how to do the following: > Set a breakpoint on e.g. main() in sys/kern/init_main.c or even earlier > in locore.S and start the kernel under a debugger to be able to step > through the early initialization stages. Searching the web yields quite > some kind of tutorials. Mainly mentioning kgdb but that got removed in > 6.2. Could be qemu. I do not really care. Read ddb(4) already but that > is a bit too late, when the kernel already is running. Of course I would > like to have source level debugging available to see the actual sources > being executed. Last time I did something like this was on a Atari > Falcon 030 using FreeMINT. So there is a lot I have to catch up with. > Any pointers highly appreciated. Thank you. > > -- > Christian >
try bochs, or qemu gdbserver, thats what I used during some locore work I was doing a few years back.