mirror of
https://github.com/cfenollosa/os-tutorial.git
synced 2024-10-27 20:34:19 +00:00
Freeze CPU at qemu startup while debug.
If we don't, the kernel might run into the infinite loop before GDB connects to Qemu.
This commit is contained in:
parent
02a77989c2
commit
d7469c76b3
@ -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 &
|
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
|
||||||
|
@ -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 &
|
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
|
||||||
|
@ -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 &
|
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
|
||||||
|
@ -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 &
|
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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -29,7 +29,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
|
||||||
|
@ -29,7 +29,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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user