################################################################### ###################### ############################# ### GDB COMMANDS ### ###################### ############################# ################################################################### 1. QEMU CONFIGURATION qemu must be started with "-s" option (shorthand for "-gdb tcp::1234") 2. GDB PART - CONNECTION - source gdbscript (if a gdbscript is created, which contains add-symbol-file commandos) - target remote localhost:1234 3. BREAKPOINTS - b CoreHandleProtocol | or OutputString 4. INFORMATION - info files || get Entry point + sections address SYM all-registers || all registers & their contents args || Argument variables of current stack frame breakpoints files || Names of targets & files being debugged functions || all function names locals || local variables of current stack frame variables || all gloabl & static variables 5. CONTROL FLOW - c - bt || print back_trace of all stack frames - stop || stop program until it reaches a different source line 6. FILES (perhaps not applicable when debugging with QEMU) - file MemtestEfi.efi || load file ...no debugging symbols found...done - file || unload files 7. LIST - list || list specified function or line