summaryrefslogtreecommitdiffstats
path: root/documentation/gdb commands
diff options
context:
space:
mode:
Diffstat (limited to 'documentation/gdb commands')
-rw-r--r--documentation/gdb commands19
1 files changed, 19 insertions, 0 deletions
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