gdb memento
(March 2004)

There are some basic features of gdb, the GNU debugger (http://www.gnu.org/software/gdb/gdb.html).
In order to get the symbol names, your program needs to be compiled with the -g option.

3 main ways to run gdb:
> gdb prog
> gdb prog pid
> gdb prog core
(prog is your program name, pid is the pid of the running program)

basic commands:
(gdb) break main
(gdb) run arg1 arg2
(gdb) print /x var_name
(gdb) bt
(gdb) up
(gdb) do