GDB ARM inside QEMU

– install codesourcery lite. (It has a cross compiler gdb for arm)
– put this “-s -S -gdb tcp::1234” in when qemu-ing the images/ELF (-s enables gdb stub, -S tells QEMU to wait for gdb to connect, tcp::1234 is port for gdb to interact)
– run qemu
– open another console and gdb the vmlinuz using gdb from codesourcery
– in gdb console, “target remote :1234”
– happy debugging

Leave a Reply

Your email address will not be published. Required fields are marked *