summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRegia König2022-08-08 15:21:53 +0200
committerRegia König2022-08-08 15:21:53 +0200
commitd287b9ce162b97cdd848cb41fec84c4c7adf9d9e (patch)
tree3db2370ff8298665b57a376f6e1b9eefdc1e9d8d
parentlast changes (diff)
downloadmemtest86-d287b9ce162b97cdd848cb41fec84c4c7adf9d9e.tar.gz
memtest86-d287b9ce162b97cdd848cb41fec84c4c7adf9d9e.tar.xz
memtest86-d287b9ce162b97cdd848cb41fec84c4c7adf9d9e.zip
start documentation
-rw-r--r--documentation/debug statement1
-rw-r--r--documentation/gdb commands19
-rw-r--r--test_code/OVMF_VARS.fdbin540672 -> 540672 bytes
-rw-r--r--test_code/debug.log3
-rw-r--r--test_code/gdbscript1
5 files changed, 23 insertions, 1 deletions
diff --git a/documentation/debug statement b/documentation/debug statement
new file mode 100644
index 0000000..a8e192c
--- /dev/null
+++ b/documentation/debug statement
@@ -0,0 +1 @@
+DEBUG (("%a: %d\n", _FUNCTION_, _LINE_));
diff --git a/documentation/gdb commands b/documentation/gdb commands
new file mode 100644
index 0000000..85bf88e
--- /dev/null
+++ b/documentation/gdb commands
@@ -0,0 +1,19 @@
+GDB COMMANDS
+============
+
+qemu must be started with "-s" option (shorthand for "-gdb tcp::1234")
+
+source gdbscript
+
+file MemtestEfi.efi || load file
+info files || get Entry point + sections
+file || unload files
+
+b CoreHandleProtocol | or OutputString
+
+target remote localhost:1234
+
+c
+bt || print back_trace of all stack frames
+stop || stop program until it reaches a different source line
+list || list specified function or line
diff --git a/test_code/OVMF_VARS.fd b/test_code/OVMF_VARS.fd
index 3fce49f..4abd7bb 100644
--- a/test_code/OVMF_VARS.fd
+++ b/test_code/OVMF_VARS.fd
Binary files differ
diff --git a/test_code/debug.log b/test_code/debug.log
index a8995b3..cda2afa 100644
--- a/test_code/debug.log
+++ b/test_code/debug.log
@@ -30,7 +30,7 @@ FW CFG Revision: 0x3
QemuFwCfg interface (DMA) is supported.
Platform PEIM Loaded
CMOS:
-00: 03 00 28 00 12 00 02 08 08 22 26 02 00 80 00 00
+00: 19 00 47 00 12 00 02 08 08 22 26 02 10 80 00 00
10: 00 00 F0 00 06 80 02 FF FF 2F 00 00 04 10 FF FF
20: C8 00 04 3F 00 00 00 00 00 00 00 00 00 00 00 00
30: FF FF 20 00 00 07 00 20 30 00 00 00 00 12 00 00
@@ -1404,6 +1404,7 @@ InstallProtocolInterface: 752F3136-4E16-4FDC-A22A-E5F46812F4CA 66B7E18
InstallProtocolInterface: 6302D008-7F9B-4F30-87AC-60C9FEF5DA4E 65710C0
FSOpen: Open '\' Success
FSOpen: Open '\' Success
+FSOpen: Open '\' Success
Image Return Status = Success
[Bds] Booting Boot Manager Menu.
[Bds]Stop Hotkey Service!
diff --git a/test_code/gdbscript b/test_code/gdbscript
index 8316706..57ed30e 100644
--- a/test_code/gdbscript
+++ b/test_code/gdbscript
@@ -104,3 +104,4 @@ add-symbol-file /home/koenigr/Memtest/git/edk2/Build/OvmfX64/DEBUG_GCC5/X64/UsbM
add-symbol-file /home/koenigr/Memtest/git/edk2/Build/OvmfX64/DEBUG_GCC5/X64/QemuVideoDxe.debug 0x6c66240
add-symbol-file /home/koenigr/Memtest/git/edk2/Build/OvmfX64/DEBUG_GCC5/X64/VirtioGpuDxe.debug 0x6c60240
add-symbol-file /home/koenigr/Memtest/git/edk2/Build/OvmfX64/DEBUG_GCC5/X64/Shell.debug 0x64f5240
+add-symbol-file /home/koenigr/Memtest/git/edk2/Build/OvmfX64/DEBUG_GCC5/X64/UiApp.debug 0x666e240