3
display expr - Show expr each time programm stopping
5
display - Show everything just now
6
info display - What is in display
10
commands <breakpoint_num> - This commands will be executed after
11
... command-list ... breakpoint is hit.
14
- if breakpoint_num omited, refers last breakpoint set
15
- Supply empty command least to clean actions
19
'continue', 'step', etc - can be used to continue execution after all
20
commands have been processed.
21
'set' - we can adjust variables, if necessary
22
silent - prevent standard messages
26
- User defined commands (accepts up to 9 arguments)
31
- Info on user defined commands
32
help user-defined - list
33
show user <cmdname> - info
35
- show max-user-call-depth / set max-user-call-depth
36
controls how many recursion levels are allowed in user-defined commands before
37
GDB suspects an infinite recursion and aborts
39
- Conditional execution
40
if <expr> ... commands-list ... else ... end
43
- Hooks: defines set of command to run before and after command
44
+ define hook-cmdname ... end
45
+ define hookpost-cmdname ... end
50
output/fmt expr - output only value, no gdb text
51
+ fmt: x (hex), d (dec), u(unsigned), o(oct), t(bin), a(addr), c(char), f(fp)
53
printf 'expr is %d\n", x - formated output
55
echi text \n\ - Output multiline text messages
60
- On start GDB automatically executes commands from its init files (.gdbinit)
61
(fist in home directory, than in current working directory)
63
* source <filename> - Execute gdb command file