summaryrefslogtreecommitdiffstats
path: root/documentation/GDB commands
diff options
context:
space:
mode:
authorRegia König2022-08-17 15:36:55 +0200
committerRegia König2022-08-17 15:36:55 +0200
commitb6292481be3cd4e9855ad40e3e4f87679a4a6c47 (patch)
tree214037d45ecc3bcbad4e7d83523d541952cc56f6 /documentation/GDB commands
parentSave old Makefile version without debug, but running (diff)
downloadmemtest86-b6292481be3cd4e9855ad40e3e4f87679a4a6c47.tar.gz
memtest86-b6292481be3cd4e9855ad40e3e4f87679a4a6c47.tar.xz
memtest86-b6292481be3cd4e9855ad40e3e4f87679a4a6c47.zip
Subtask 'hello.efi with gdb' completed
Diffstat (limited to 'documentation/GDB commands')
-rw-r--r--documentation/GDB commands22
1 files changed, 21 insertions, 1 deletions
diff --git a/documentation/GDB commands b/documentation/GDB commands
index 1cbd2ac..ef02570 100644
--- a/documentation/GDB commands
+++ b/documentation/GDB commands
@@ -14,7 +14,7 @@ QEMU CONFIGURATION
#
SYMBOL FILES
- add-symbol-file Hello.debug 0x... -s .data 0x...
+ add-symbol-file /path/to/Hello.debug 0x... -s .data 0x...
CONNECTION
@@ -98,3 +98,23 @@ gdb --tui
- next
- ctrl+x o || change active window
+
+VARIABLES
+ info locals
+ info variables
+ info args
+
+ || Set is the same as print except that the expression's value is not printed
+ || and is not put in the value history.
+ || if your program has a variable width, you get an error if you try to set
+ || a new value with just ‘set width=13’, because GDB has the command set width
+ || To avoid to set silently general variables to invalid values, ALWAYS use
+ || set var x=4
+ print x=4
+ set x=4 or set variable x=4
+ whatis x -> type = double
+
+
+
+
+