From 16e98e3f28bb6995eddc976515b46f077e5ac4ab Mon Sep 17 00:00:00 2001 From: bjorn3 <17426603+bjorn3@users.noreply.github.com> Date: Sun, 24 Aug 2025 18:56:39 +0200 Subject: [PATCH] Add a make qemu mode to allow attaching gdb without waiting for it This way you can unconditionally enable this mode during development without being forced to attach a debugger every time you start a VM. --- mk/qemu.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mk/qemu.mk b/mk/qemu.mk index 62db45e8e..b9740e619 100644 --- a/mk/qemu.mk +++ b/mk/qemu.mk @@ -272,6 +272,9 @@ endif ifeq ($(gdb),yes) QEMUFLAGS+=-d cpu_reset -s -S +else ifeq ($(gdb),nonblock) + # Allow attaching gdb, but don't block for it + QEMUFLAGS+=-d cpu_reset -s endif ifeq ($(UNAME),Linux)