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