Added -S flag to qemu so that qemu waits till gdb loads

This commit is contained in:
Akshaylal 2021-05-24 19:51:58 +05:30
parent b11e529d21
commit b760753912
9 changed files with 9 additions and 9 deletions

View File

@ -27,7 +27,7 @@ run: os-image.bin
# Open the connection to qemu and load our kernel-object file with symbols # Open the connection to qemu and load our kernel-object file with symbols
debug: os-image.bin kernel.elf 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" ${GDB} -ex "target remote localhost:1234" -ex "symbol-file kernel.elf"
# Generic rules for wildcards # Generic rules for wildcards

View File

@ -27,7 +27,7 @@ run: os-image.bin
# Open the connection to qemu and load our kernel-object file with symbols # Open the connection to qemu and load our kernel-object file with symbols
debug: os-image.bin kernel.elf 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" ${GDB} -ex "target remote localhost:1234" -ex "symbol-file kernel.elf"
# Generic rules for wildcards # Generic rules for wildcards

View File

@ -27,7 +27,7 @@ run: os-image.bin
# Open the connection to qemu and load our kernel-object file with symbols # Open the connection to qemu and load our kernel-object file with symbols
debug: os-image.bin kernel.elf 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" ${GDB} -ex "target remote localhost:1234" -ex "symbol-file kernel.elf"
# Generic rules for wildcards # Generic rules for wildcards

View File

@ -27,7 +27,7 @@ run: os-image.bin
# Open the connection to qemu and load our kernel-object file with symbols # Open the connection to qemu and load our kernel-object file with symbols
debug: os-image.bin kernel.elf 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" ${GDB} -ex "target remote localhost:1234" -ex "symbol-file kernel.elf"
# Generic rules for wildcards # Generic rules for wildcards

View File

@ -27,7 +27,7 @@ run: os-image.bin
# Open the connection to qemu and load our kernel-object file with symbols # Open the connection to qemu and load our kernel-object file with symbols
debug: os-image.bin kernel.elf 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" ${GDB} -ex "target remote localhost:1234" -ex "symbol-file kernel.elf"
# Generic rules for wildcards # Generic rules for wildcards

View File

@ -27,7 +27,7 @@ run: os-image.bin
# Open the connection to qemu and load our kernel-object file with symbols # Open the connection to qemu and load our kernel-object file with symbols
debug: os-image.bin kernel.elf 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" ${GDB} -ex "target remote localhost:1234" -ex "symbol-file kernel.elf"
# Generic rules for wildcards # Generic rules for wildcards

View File

@ -28,7 +28,7 @@ run: os-image.bin
# Open the connection to qemu and load our kernel-object file with symbols # Open the connection to qemu and load our kernel-object file with symbols
debug: os-image.bin kernel.elf 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" ${GDB} -ex "target remote localhost:1234" -ex "symbol-file kernel.elf"
# Generic rules for wildcards # Generic rules for wildcards

View File

@ -28,7 +28,7 @@ run: os-image.bin
# Open the connection to qemu and load our kernel-object file with symbols # Open the connection to qemu and load our kernel-object file with symbols
debug: os-image.bin kernel.elf 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" ${GDB} -ex "target remote localhost:1234" -ex "symbol-file kernel.elf"
# Generic rules for wildcards # Generic rules for wildcards

View File

@ -27,7 +27,7 @@ run: os-image.bin
# Open the connection to qemu and load our kernel-object file with symbols # Open the connection to qemu and load our kernel-object file with symbols
debug: os-image.bin kernel.elf 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" ${GDB} -ex "target remote localhost:1234" -ex "symbol-file kernel.elf"
# Generic rules for wildcards # Generic rules for wildcards