Features/gdbstub: Difference between revisions

From QEMU
(Created page with "QEMu support a gdbserver known as the gdbstub. With this you can debug programs in both linux-user and system emulation modes. == Invoking == $QEMU $QEMU_ARGS -s -S Wil...")
 
No edit summary
Line 1: Line 1:
QEMu support a gdbserver known as the gdbstub. With this you can debug programs in both linux-user and system emulation modes.
QEMU support a gdbserver known as the gdbstub. With this you can debug programs in both linux-user and system emulation modes.


== Invoking ==
== Invoking ==

Revision as of 16:35, 22 March 2019

QEMU support a gdbserver known as the gdbstub. With this you can debug programs in both linux-user and system emulation modes.

Invoking

   $QEMU $QEMU_ARGS -s -S

Will configure the system and stop at the first instruction. You can then attach with:

   gdb $BINARY -ex "target remote localhost:1234"

and debug your program

Developer Notes

The gdbstub doesn't support all the features of the gdbserver protocol which is documented