qemu: Create UNIX socket for connecting to QEMU's GDB stub

This let's you debug the running operating system kernel, or the
bootloader.
This commit is contained in:
Tobias Waldekranz
2024-06-17 14:59:27 +02:00
parent b536f0c874
commit ec5af122f6
+7
View File
@@ -255,6 +255,12 @@ wdt_args()
echo -n "-device i6300esb -rtc clock=host"
}
gdb_args()
{
echo -n "-chardev socket,id=gdbqemu,path=gdbqemu.sock,server=on,wait=off "
echo -n "-gdb chardev:gdbqemu"
}
run_qemu()
{
if [ "$CONFIG_QEMU_ROOTFS_VSCSI" = "y" ]; then
@@ -272,6 +278,7 @@ run_qemu()
$(net_args) \
$(wdt_args) \
$(vpd_args) \
$(gdb_args) \
$CONFIG_QEMU_EXTRA
EOF