GDB(1) GDB(1) gdb - (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 (ID) "-p" : gdb program 1234 gdb -p 1234 GDB 1234 . -p program . GDB : break [file:][function|line] (breakpoint) function line ( file). run [arglist] ( arglist ). bt (Backtrace): . print 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 ( ID) --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 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 GDB (inferior). --directory=directory -d directory directory . --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) pid. --tui / (TUI). --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 ..SH " (ENVIRONMENT)" (SEE ALSO) GDB Texinfo . "info" "gdb" Texinfo GDB info gdb . Using GDB: A Guide to the GNU Source-Level Debugger Richard M. Stallman Roland H. Pesch . (COPYRIGHT) Copyright (c) 1988-2025 Free Software Foundation, Inc. / (GNU Free Documentation License) . (FSF) "Free Software" "Free Software Needs Free Documentation" "A GNU Manual" (a) . (a) FSF : " GNU . GNU Press FSF GNU ." gdb-17.1 2025-12-20 GDB(1)