https://retrage.github.io/2019/12/05/debugging-ovmf-en.html How to debug with gdb: 1. make run 2. ./gen_symbol_offets.sh > gdbscript 3. make debug 4. open second terminal. Type gdb 5. In second terminal: (gdb) source gdbscript (gdb) b CoreHandleProtocol (gdb) target remote localhost:1234 (gdb) c