From 925ca6fc51f5cbcbf4638016c05b63d4f0a990f0 Mon Sep 17 00:00:00 2001 From: Nick Desaulniers Date: Thu, 18 Mar 2021 17:40:02 -0700 Subject: [PATCH] fix -g, I missed this in review of cc703a8796d2c Signed-off-by: Nick Desaulniers --- boot-qemu.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/boot-qemu.sh b/boot-qemu.sh index fabe0e0..d980381 100755 --- a/boot-qemu.sh +++ b/boot-qemu.sh @@ -341,7 +341,8 @@ function invoke_qemu() { -s -S & QEMU_PID=$! green "Starting GDB..." - "${GDB_BIN:-gdb-multiarch}" "${KBUILD_DIR}/vmlinux" -ex "target remote :1234" + "${GDB_BIN:-gdb-multiarch}" "${KERNEL_LOCATION}/vmlinux" \ + -ex "target remote :1234" red "Killing QEMU..." kill -9 "${QEMU_PID}" wait "${QEMU_PID}" 2>/dev/null