From 07b632abe5dcacbafd563c1c15e22919e0c6ce8a Mon Sep 17 00:00:00 2001 From: acevest Date: Tue, 16 May 2023 15:55:49 +0800 Subject: [PATCH] debug script --- gdbscript | 3 ++- qemu.sh | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) 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}" -- 2.44.0