Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== gdb ====== * compile executables with '-g' to generate debugging information (see 4.1 in gdb manual) * usage: gdb <program> ===== gdb examples (at gdb prompt) ===== <code> break [function name|line number|* address] delete [breakpointno] (delete breakpoint no or all breakpoints) run [> outfile] bt (backtrace) s (step into) c (continue) n (next, step over) set args <arg1> <arg2> ... show args info locals info breakpoints disable <breakpointno> display <expr> (automatic display list) info display undisplay <displayno> disable display <displayno> enable display <displayno> </code> ===== External Links ===== * http://www.gnu.org/software/gdb/documentation/ docs/programming/debugging/gdb.txt Last modified: 2008/08/03 00:25by 127.0.0.1