From b760753912489b06b6cb7ad38571175ad0af6421 Mon Sep 17 00:00:00 2001 From: Akshaylal Date: Mon, 24 May 2021 19:51:58 +0530 Subject: [PATCH] Added -S flag to qemu so that qemu waits till gdb loads --- 14-checkpoint/Makefile | 2 +- 15-video-ports/Makefile | 2 +- 16-video-driver/Makefile | 2 +- 17-video-scroll/Makefile | 2 +- 19-interrupts-irqs/Makefile | 2 +- 20-interrupts-timer/Makefile | 2 +- 21-shell/Makefile | 2 +- 22-malloc/Makefile | 2 +- 23-fixes/Makefile | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/14-checkpoint/Makefile b/14-checkpoint/Makefile index b611257..7d43bc3 100644 --- a/14-checkpoint/Makefile +++ b/14-checkpoint/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 & + qemu-system-i386 -s -S -fda os-image.bin & ${GDB} -ex "target remote localhost:1234" -ex "symbol-file kernel.elf" # Generic rules for wildcards diff --git a/15-video-ports/Makefile b/15-video-ports/Makefile index b611257..7d43bc3 100644 --- a/15-video-ports/Makefile +++ b/15-video-ports/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 & + qemu-system-i386 -s -S -fda os-image.bin & ${GDB} -ex "target remote localhost:1234" -ex "symbol-file kernel.elf" # Generic rules for wildcards diff --git a/16-video-driver/Makefile b/16-video-driver/Makefile index b611257..7d43bc3 100644 --- a/16-video-driver/Makefile +++ b/16-video-driver/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 & + qemu-system-i386 -s -S -fda os-image.bin & ${GDB} -ex "target remote localhost:1234" -ex "symbol-file kernel.elf" # Generic rules for wildcards diff --git a/17-video-scroll/Makefile b/17-video-scroll/Makefile index b611257..7d43bc3 100644 --- a/17-video-scroll/Makefile +++ b/17-video-scroll/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 & + qemu-system-i386 -s -S -fda os-image.bin & ${GDB} -ex "target remote localhost:1234" -ex "symbol-file kernel.elf" # Generic rules for wildcards diff --git a/19-interrupts-irqs/Makefile b/19-interrupts-irqs/Makefile index 8a68aa0..6575ba6 100644 --- a/19-interrupts-irqs/Makefile +++ b/19-interrupts-irqs/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 diff --git a/20-interrupts-timer/Makefile b/20-interrupts-timer/Makefile index 4d6da94..c80e4ed 100644 --- a/20-interrupts-timer/Makefile +++ b/20-interrupts-timer/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 diff --git a/21-shell/Makefile b/21-shell/Makefile index 1478294..8a89a50 100644 --- a/21-shell/Makefile +++ b/21-shell/Makefile @@ -28,7 +28,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 diff --git a/22-malloc/Makefile b/22-malloc/Makefile index 1478294..8a89a50 100644 --- a/22-malloc/Makefile +++ b/22-malloc/Makefile @@ -28,7 +28,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 diff --git a/23-fixes/Makefile b/23-fixes/Makefile index 65e577b..19ed088 100644 --- a/23-fixes/Makefile +++ b/23-fixes/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