Frequently Used gdb Commands Command Description ~~~~~~~ ~~~~~~~~~~~ help Display information on specified topic (default: list all commands) quit Exit gdb run Run/restart program (arguments and I/O redirection can be specified; uses previous argument-list/redirection if none) list Display specified lines in current source file break Stop execution on entry to specified function or at specified line delete Delete specified breakpoint step Execute next statement, stopping in any function called next Execute next statement, skipping over any function called continue Continue execution until next breakpoint finish Continue execution until current function returns or next breakpoint print Print value of specified expression display Show value of specified expression each time program stops backtrace Display list of all active functions up Move up one level in call stack down Move down one level in call stack CS-223-01/12/04