Skip to content

[QEMU‐Linux] Debugging on Linux (Debian‐based)

Antonio Giacomelli edited this page May 10, 2025 · 21 revisions

🐧 Debugging on Linux (Debian-based)


Dependencies

sudo apt install gcc-arm-none-eabi qemu-system-arm 

For Debian-based you install and use:

sudo apt install gdb-multiarch # not gdb-arm-none-eabi

Text Debug Flow

make qemu-debug   # starts QEMU and waits for GDB

Open another terminal

# within the project directory
gdb-multiarch  build/armv7m/rk0_demo.elf -ex 'target remote localhost:1234' 

image Debugging on pure text mode on a Gnome terminal.

Clone this wiki locally