summaryrefslogtreecommitdiffstats
path: root/documentation/GDB commands
diff options
context:
space:
mode:
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
+
+
+
+
+