From: acevest Date: Tue, 16 May 2023 07:55:49 +0000 (+0800) Subject: debug script X-Git-Url: http://zhaoyanbai.com/repos/man.genrandom.html?a=commitdiff_plain;h=07b632abe5dcacbafd563c1c15e22919e0c6ce8a;p=kernel.git debug script --- diff --git a/gdbscript b/gdbscript index e4101cd..c8c2218 100644 --- a/gdbscript +++ b/gdbscript @@ -1,2 +1,3 @@ target remote localhost:1234 -file KERNEL.BIN +b setup_kernel +c diff --git a/qemu.sh b/qemu.sh index 84f8d02..83cecf8 100755 --- a/qemu.sh +++ b/qemu.sh @@ -5,13 +5,16 @@ qemu-system-i386 \ -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}"