Repos / kernel.git / commitdiff
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fec5ffb)
raw | patch | inline | side by side (parent: fec5ffb)
| author | zhaoyanbai <zhaoyanbai@126.com> | |
| Tue, 16 May 2023 07:55:49 +0000 (15:55 +0800) | ||
| committer | zhaoyanbai <zhaoyanbai@126.com> | |
| Tue, 16 May 2023 07:55:49 +0000 (15:55 +0800) |
| gdbscript | patch | blob | history | |
| qemu.sh | patch | blob | history |
diff --git a/gdbscript b/gdbscript
--- a/gdbscript
+++ b/gdbscript
target remote localhost:1234
-file KERNEL.BIN
+b setup_kernel
+c
--- a/qemu.sh
+++ b/qemu.sh
-s -S \
&
+# -device ich9-ahci,id=ahci \
+# -machine accel=tcg \
+# -serial stdio \
#qemu-system-x86_64 -boot d -s -S -drive file=HD.IMG,format=raw,index=0,media=disk -drive file=kernel.iso,index=1,media=cdrom &
#
pid=$!
echo "pid is ${pid}"
-i386-elf-gdb -x gdbscript; kill -9 $pid
+i386-elf-gdb KERNEL.BIN -x gdbscript; kill -9 $pid
echo "kill pid ${pid}"