GDB Debug Sample
Overview
A simple sample that can be used with QEMU to show debug using GDB Remote Serial Protocol (RSP) capabilities.
Building and Running
This application can be built and executed on QEMU as follows:
west build -b qemu_x86 samples/subsys/debug/gdbstub
west build -t run
Open a new terminal and use gdb to connect to the running qemu as follows:
gdb build/zephyr/zephyr.elf
(gdb) target remote :5678
Exit QEMU by pressing CTRL+A x.