summaryrefslogtreecommitdiffstats
path: root/documentation
diff options
context:
space:
mode:
authorRegia König2022-08-11 15:30:23 +0200
committerRegia König2022-08-11 15:30:23 +0200
commit2060a0302ece8734c1f91479deb7c458f3db10b3 (patch)
tree1ad473cc9e0025949a5675374fd0f1d32b1d24ab /documentation
parentDocumentation QEMU Monitor commands (diff)
downloadmemtest86-2060a0302ece8734c1f91479deb7c458f3db10b3.tar.gz
memtest86-2060a0302ece8734c1f91479deb7c458f3db10b3.tar.xz
memtest86-2060a0302ece8734c1f91479deb7c458f3db10b3.zip
GDB Documentation
Diffstat (limited to 'documentation')
-rw-r--r--documentation/GDB commands52
-rw-r--r--documentation/gdb commands19
2 files changed, 52 insertions, 19 deletions
diff --git a/documentation/GDB commands b/documentation/GDB commands
new file mode 100644
index 0000000..761eeb9
--- /dev/null
+++ b/documentation/GDB commands
@@ -0,0 +1,52 @@
+###################################################################
+###################### #############################
+### GDB COMMANDS ###
+###################### #############################
+###################################################################
+
+1. QEMU CONFIGURATION
+
+ qemu must be started with "-s" option
+ (shorthand for "-gdb tcp::1234")
+
+
+2. GDB PART - CONNECTION
+ - source gdbscript
+ (if a gdbscript is created, which contains
+ add-symbol-file commandos)
+
+ - target remote localhost:1234
+
+
+3. BREAKPOINTS
+
+ - b CoreHandleProtocol | or OutputString
+
+
+4. INFORMATION
+
+ - info
+ files || get Entry point + sections
+ address SYM
+ all-registers || all registers & their contents
+ args || Argument variables of current stack frame
+ breakpoints
+ files || Names of targets & files being debugged
+ functions || all function names
+ locals || local variables of current stack frame
+ variables || all gloabl & static variables
+
+5. CONTROL FLOW
+
+ - c
+ - bt || print back_trace of all stack frames
+ - stop || stop program until it reaches a different source line
+
+6. FILES (perhaps not applicable when debugging with QEMU)
+
+ - file MemtestEfi.efi || load file ...no debugging symbols found...done
+ - file || unload files
+
+7. LIST
+
+ - list || list specified function or line
diff --git a/documentation/gdb commands b/documentation/gdb commands
deleted file mode 100644
index 416a758..0000000
--- a/documentation/gdb commands
+++ /dev/null
@@ -1,19 +0,0 @@
-GDB COMMANDS
-============
-
-qemu must be started with "-s" option (shorthand for "-gdb tcp::1234")
-
-source gdbscript
-
-file MemtestEfi.efi || load file ...no debugging symbols found...done
-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