GDB(1) GDB(1) (NAME) gdb - (The GNU Debugger) (SYNOPSIS) gdb [OPTIONS] [prog|prog procID|prog core] (DESCRIPTION) () GDB <<>> -- (crash) . GDB ( ) : o . o . o . o . GDB C C++ Fortran Modula-2 . GDB "gdb" . "quit" "exit" GDB . "help" GDB . "gdb" GDB : gdb program core : gdb program core (PID) "-p" : gdb program 1234 gdb -p 1234 GDB 1234 (attach) . -p program . GDB : break [file:][function|line] (breakpoint) function line ( file). run [arglist] ( arglist ). bt (Backtrace): . print expr expr. c ( ). next ( ) (over). edit [file:]function . list [file:]function . step ( ) (into). help [name] name GDB GDB. quit exit GDB. GDB Using GDB: A Guide to the GNU Source-Level Debugger . (Richard M. Stallman) . (Roland H. Pesch) . "gdb" "info" . (OPTIONS) core ( ) --se ( ) -c . . . - -- --help . GDB : "--option=value" "--option value" "-option=value" "-option value" "--o=value" "--o value" "-o=value" "-o value" . -x . --help -h . --symbols=file -s file (symbol table) file. --write core. --exec=file -e file file core dump. --se=file file . --core=file -c file file core dump . --command=file -x file GDB file. --eval-command=command -ex command (command) GDB. --init-eval-command=command -iex (command) GDB (inferior). --directory=directory -d directory directory (source files). --nh ~/.config/gdb/gdbinit ~/.gdbinit ~/.config/gdb/gdbearlyinit ~/.gdbearlyinit. --nx -n .gdbinit .gdbearlyinit. --quiet --silent -q <<>> (Quiet). . (batch mode) . --batch (batch mode). -x ( .gdbinit ) 0 . GDB . GDB Program exited normally. ( GDB ) . --batch-silent --batch . GDB ( stderr ). --silent . Loading section . "stdout" GDB . --args prog [arglist] . : gdb ./a.out -q GDB -q . : gdb --args ./a.out -q GDB . --pid=pid GDB pid. --tui (Terminal User Interface). --readnow . --readnever . --return-child-result GDB ( ) . --configuration GDB . --version . --cd=directory GDB directory . --data-directory=directory -D GDB directory . GDB . --fullname -f Emacs GDB . GDB ( ) . \032 . Emacs-to-GDB \032 . -b baudrate ( ) GDB . -l timeout (timeout) . --tty=device device . (ENVIRONMENT) (SEE ALSO) GDB Texinfo . "info" "gdb" Texinfo GDB info gdb . Using GDB: A Guide to the GNU Source-Level Debugger, Richard M. Stallman and Roland H. Pesch, July 1991. (COPYRIGHT) (C) - (Free Software Foundation, Inc.) / (GNU Free Documentation License) . <> <> <> (a) . (a) FSF : << . (GNU Press) FSF .>> gdb-17.2 2026-05-10 GDB(1)