From fb37bb4cd3d0f959e5dd3ec745ea96c0e66b67cd Mon Sep 17 00:00:00 2001 From: Regina König Date: Mon, 28 Jun 2021 19:00:48 +0200 Subject: Add new options in shell script to use gdb --- efi_memtest/memtest86+/efi/test.c | 4 ++-- test_code/run.sh | 8 +++++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/efi_memtest/memtest86+/efi/test.c b/efi_memtest/memtest86+/efi/test.c index e3b4f6a..aefb2cb 100644 --- a/efi_memtest/memtest86+/efi/test.c +++ b/efi_memtest/memtest86+/efi/test.c @@ -581,8 +581,8 @@ void addr_tst2(int me) /* if (logflag && log_tst2) { print_log("addr_tst2(): starting addr_tst2_check_segment", 45); }*/ - if(1) print_log("HAHAHA", 6); - //if(1) cprint(1, 1, "#################"); + //if(1) print_log("HAHAHA", 6); + if(1) cprint(1, 1, "#################"); /* if (logflag && log_tst2 && addr_written) { char log[35] = "content of p = "; diff --git a/test_code/run.sh b/test_code/run.sh index b2f6f30..b850537 100755 --- a/test_code/run.sh +++ b/test_code/run.sh @@ -3,7 +3,13 @@ #(cd hda-contents; rm memtest_log; echo -n -e '\x00' >> memtest_log) -sudo kvm -bios OVMF.fd --drive file=fat:rw:hda-contents,index=0,media=disk,format=raw --drive file=fat:rw:hdb-contents,index=1,media=disk,format=raw -net none -cpu host +# sudo kvm -bios OVMF.fd -serial tcp::666,server -s \ +# --drive file=fat:rw:hda-contents,index=0,media=disk,format=raw \ +# --drive file=fat:rw:hdb-contents,index=1,media=disk,format=raw -net none -cpu host + +sudo kvm -bios OVMF.fd -s -S \ + --drive file=fat:rw:hda-contents,index=0,media=disk,format=raw -net none -cpu host + #-drive file=vm-disk-2G,format=raw,index=3,media=disk #-nographic #-no-reboot -- cgit v1.2.3-55-g7522