GDB(1)
π GDB(1) π
okay bestie, welcome to the User Commands section of the manual, page 1 β yes this is GDB(1), the GNU Debugger, and we are gonna get you so comfortable with it. grab a snack. π
β¨ NAME β¨
avr-gdb β The GBU debugger for AVR π«Ά
πΈ DESCRIPTION πΈ
hiii so this is the GNU debugger, and here's how you actually run it:
avr-gdb [options] [executable-file [core-file or process-id]]
avr-gdb [options] --args executable-file [inferior-arguments ...]
that's the whole vibe. two shapes. one of them hands extra stuff to the thing you're debugging, the other one doesn't. π
π Picking your debuggee and its files (the "who am I even looking at" section)
--argsβ everything after executable-file gets passed to the inferior. like, the args go to the program, not to gdb. iykyk.--core=COREFILEβ analyze the core dump COREFILE. autopsy mode π¦--exec=EXECFILEβ use EXECFILE as the executable.--pid=PIDβ attach to a running process PID. it's giving "hey i see you" π--directory=DIRβ search for source files in DIR.--se=FILEβ use FILE as symbol file and executable file. two for one, iconic.--symbols=SYMFILEβ read symbols from SYMFILE.--readnowβ fully read symbol files on first access. no waiting around. β‘--readneverβ do not read symbol files. at all. periodt.--writeβ set writing into executable and core files.
lowkey careful with --write, bestie, it literally turns writing on. that's the whole thing. π
π§ Initial commands and command files (scripting girl era)
--command=FILE,-xβ execute GDB commands from FILE.--init-command=FILE,-ixβ like-xbut execute commands before loading inferior.--eval-command=COMMAND,-exβ execute a single GDB command. may be used multiple times and in conjunction with--command. stack 'em up queen π--init-eval-command=COMMAND,-iexβ like-exbut before loading inferior.--nhβ do not read~/.gdbinit. not today.--nxβ do not read any.gdbinitfiles in any directory. none. zero. β
π Output and user interface control (the aesthetic choices)
--fullnameβ output information used by emacs-GDB interface.--interpreter=INTERPβ select a specific interpreter / user interface.--tty=TTYβ use TTY for input/output by the program being debugged.-wβ use the GUI interface.--nwβ do not use the GUI interface.--tuiβ use a terminal user interface. tui girlies rise π--dbxβ DBX compatibility mode.-q,--quiet,--silentβ do not print version number on startup. silent but slaying.
β Operating modes (what happens when)
--batchβ exit after processing options.--batch-silentβ like--batch, but suppress all gdb stdout output. full mute.--return-child-resultβ GDB exit code will be the child's exit code.--configurationβ print details about GDB configuration and then exit.--helpβ print this message and then exit.--versionβ print version information and then exit.
π¦ Remote debugging options (long distance relationship core)
-b BAUDRATEβ set serial port baud rate used for remote debugging.-l TIMEOUTβ set timeout in seconds for remote debugging.
π Other options (miscellaneous main characters)
--cd=DIRβ change current directory to DIR.--data-directory=DIR,-Dβ set GDB's data-directory to DIR.
At startup, GDB reads the following early init files and executes their commands:
None found.
At startup, GDB reads the following init files and executes their commands:
None found.
bestie. it found nothing. that's the whole reveal. π
for more information, type "help" from within GDB, or consult the GDB manual (available as on-line info or a printed manual). fr fr.
π£ REPORTING BUGS π£
report bugs to <https://www.gnu.org/software/gdb/bugs/>.
you can ask GDB-related questions on the GDB users mailing list (gdb@sourceware.org) or on GDB's IRC channel (#gdb on Freenode). the group chat is open, come thru π
Β©οΈ COPYRIGHT Β©οΈ
Copyright Β© 2023 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
no warranty bestie, i said what i said π«Ά
π SEE ALSO π
The full documentation for gdb is maintained as a Texinfo manual. If the info and gdb programs are properly installed at your site, the command
info gdb
should give you access to the complete manual. go read it, it's the director's cut π
and that's the page!! this manual is GNU gdb (GDB) 13.2, dated September 2023 β so if you're reading this in a group chat somewhere in the future, that's the tea. bye bestie, go set a breakpoint πβ¨
π¦ where this page comes from
- debian trixie: gdb-avr 15.1-1+b3 Β· GPL-3.0-or-later
- ubuntu noble: gdb-avr 13.2-3ubuntu3 Β· GPL-3.0-or-later
- ubuntu questing: gdb-avr 15.1-1
- ubuntu resolute: gdb-avr 15.1-1build1 Β· GPL-3.0-or-later
- ubuntu stonking: gdb-avr 15.1-1build1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms