From b11e529d2115691098e26d5fe95f015b757278d0 Mon Sep 17 00:00:00 2001 From: Akshaylal Date: Mon, 24 May 2021 19:48:56 +0530 Subject: [PATCH] Added -S flag to qemu so that qemu waits till gdb loads --- 18-interrupts/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/18-interrupts/Makefile b/18-interrupts/Makefile index 8a68aa0..6575ba6 100644 --- a/18-interrupts/Makefile +++ b/18-interrupts/Makefile @@ -27,7 +27,7 @@ run: os-image.bin # Open the connection to qemu and load our kernel-object file with symbols debug: os-image.bin kernel.elf - qemu-system-i386 -s -fda os-image.bin -d guest_errors,int & + qemu-system-i386 -s -S -fda os-image.bin -d guest_errors,int & ${GDB} -ex "target remote localhost:1234" -ex "symbol-file kernel.elf" # Generic rules for wildcards