CPU: Intel x86 KabyLake. I'm using 5.17 Kernel built from upstream and GRUB 2.04
But objdump-ing the Kernel image shows that there is no such symbol as main. GDB attached to QEMU does not know about this symbol either.
What are you trying to do that start-kernel is insufficiently early ?
main.c 's that you dont hit dont really matter do they ?
fwiw, I really like virtme
virtme-run $KRUN_SHOW $KRUN_STDS $KDBG_OPTS $* $QM_OPTS --smp 3 -s -S
the -s -S stops me early enough to anything Ive needed to so far.