From 269455db17eb974d7ff6608666b6b68b27336088 Mon Sep 17 00:00:00 2001 From: Regia König Date: Sun, 14 Aug 2022 21:32:00 +0200 Subject: test.sh now also has OVMF_VARS and OVMF_CODE --- documentation/GDB commands | 12 ++++++++++++ test_code/test.sh | 7 +++++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/documentation/GDB commands b/documentation/GDB commands index 992a6cd..a6db0cc 100644 --- a/documentation/GDB commands +++ b/documentation/GDB commands @@ -38,6 +38,8 @@ BREAKPOINTS - b CoreHandleProtocol || or OutputString - break *0x65fe447 || set breakpoint at address + - delete 2 || delete breakpoint no 2 + - break sampleApp.c:nn=LineNumber INFORMATION @@ -79,3 +81,13 @@ FILES (perhaps not applicable when debugging with QEMU) LIST - list || list specified function or line + +gdb --tui + - layout asm + - layout reg + - layout src + + - tui enable + - tui disable + + - next diff --git a/test_code/test.sh b/test_code/test.sh index 5c9ff29..63933a5 100755 --- a/test_code/test.sh +++ b/test_code/test.sh @@ -1,5 +1,8 @@ #!\bin\bash -sudo qemu-system-x86_64 -s -bios ./OVMF.fd -hda fat:rw:hda-contents \ --net none -debugcon file:debug.log -global isa-debugcon.iobase=0x402 -S +sudo qemu-system-x86_64 -s -bios ./OVMF.fd \ + -hda fat:rw:hda-contents \ + -drive if=pflash,format=raw,readonly,file=OVMF_CODE.fd \ + -drive if=pflash,format=raw,file=OVMF_VARS.fd \ + -net none -debugcon file:debug.log -global isa-debugcon.iobase=0x402 -S -- cgit v1.2.3-55-g7522