i386-elf-gdb

GNU debugger for i386-elf cross-compilation and bare-metal development

brewmacoslinux
Try with needOr install directly
Source

About

GNU debugger for i386-elf cross development

Commands

i386-elf-gdb

Examples

debug a compiled kernel or bootloader$ i386-elf-gdb ./kernel.elf
connect to a remote target via serial port$ i386-elf-gdb -ex 'target remote /dev/ttyUSB0' ./kernel.elf
set a breakpoint and run a program$ i386-elf-gdb -ex 'break main' -ex 'run' ./kernel.elf
examine memory contents of a binary$ i386-elf-gdb -ex 'file kernel.elf' -ex 'x/16x 0x1000' -batch
debug with QEMU emulator$ i386-elf-gdb -ex 'target remote localhost:1234' ./kernel.elf