.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "GDBINIT 5" .TH GDBINIT 5 2024-04-24 gdb- "GNU Development Tools" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME gdbinit \- GDB initialization scripts .SH SYNOPSIS .IX Header "SYNOPSIS" /etc/gdbinit .PP ~/.config/gdb/gdbinit .PP ~/.gdbinit .PP \&./.gdbinit .SH DESCRIPTION .IX Header "DESCRIPTION" These files contain GDB commands to automatically execute during GDB startup. The lines of contents are canned sequences of commands, described in the GDB manual in node \f(CW\*(C`Sequences\*(C'\fR \&\-\- shell command \f(CW\*(C`info \-f gdb \-n Sequences\*(C'\fR. .PP Please read more in the GDB manual in node \f(CW\*(C`Startup\*(C'\fR \&\-\- shell command \f(CW\*(C`info \-f gdb \-n Startup\*(C'\fR. .IP \fB/etc/gdbinit\fR 4 .IX Item "/etc/gdbinit" System-wide initialization file. It is executed unless user specified GDB option \f(CW\*(C`\-nx\*(C'\fR or \f(CW\*(C`\-n\*(C'\fR. See more in the GDB manual in node \f(CW\*(C`System\-wide configuration\*(C'\fR \&\-\- shell command \f(CW\*(C`info \-f gdb \-n \*(AqSystem\-wide configuration\*(Aq\*(C'\fR. .ie n .IP "\fB(not enabled with \fR\fB""\-\-with\-system\-gdbinit\-dir""\fR\fB during compilation)\fR" 4 .el .IP "\fB(not enabled with \fR\f(CB\-\-with\-system\-gdbinit\-dir\fR\fB during compilation)\fR" 4 .IX Item "(not enabled with --with-system-gdbinit-dir during compilation)" System-wide initialization directory. All files in this directory are executed on startup unless user specified GDB option \f(CW\*(C`\-nx\*(C'\fR or \&\f(CW\*(C`\-n\*(C'\fR, as long as they have a recognized file extension. See more in the GDB manual in node \f(CW\*(C`System\-wide configuration\*(C'\fR \&\-\- shell command \f(CW\*(C`info \-f gdb \-n \*(AqSystem\-wide configuration\*(Aq\*(C'\fR. .IP "\fR\f(BI~/.config/gdb/gdbinit\fR\fB or \fR\f(BI~/.gdbinit\fR\fB\fR" 4 .IX Item "~/.config/gdb/gdbinit or ~/.gdbinit" User initialization file. It is executed unless user specified GDB options \f(CW\*(C`\-nx\*(C'\fR, \f(CW\*(C`\-n\*(C'\fR or \f(CW\*(C`\-nh\*(C'\fR. .IP \fR\f(BI.gdbinit\fR\fB\fR 4 .IX Item ".gdbinit" Initialization file for current directory. It may need to be enabled with GDB security command \f(CW\*(C`set auto\-load local\-gdbinit\*(C'\fR. See more in the GDB manual in node \f(CW\*(C`Init File in the Current Directory\*(C'\fR \&\-\- shell command \f(CW\*(C`info \-f gdb \-n \*(AqInit File in the Current Directory\*(Aq\*(C'\fR. .SH OPTIONS .IX Header "OPTIONS" .SH "SEE ALSO" .IX Header "SEE ALSO" \&\fBgdb\fR\|(1), \f(CW\*(C`info \-f gdb \-n Startup\*(C'\fR .PP The full documentation for GDB is maintained as a Texinfo manual. If the \f(CW\*(C`info\*(C'\fR and \f(CW\*(C`gdb\*(C'\fR programs and GDB's Texinfo documentation are properly installed at your site, the command .PP .Vb 1 \& info gdb .Ve .PP should give you access to the complete manual. .PP \&\fIUsing GDB: A Guide to the GNU Source-Level Debugger\fR, Richard M. Stallman and Roland H. Pesch, July 1991. .SH COPYRIGHT .IX Header "COPYRIGHT" Copyright (c) 1988\-2023 Free Software Foundation, Inc. .PP Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with the Invariant Sections being "Free Software" and "Free Software Needs Free Documentation", with the Front-Cover Texts being "A GNU Manual," and with the Back-Cover Texts as in (a) below. .PP (a) The FSF's Back-Cover Text is: "You are free to copy and modify this GNU Manual. Buying copies from GNU Press supports the FSF in developing GNU and promoting software freedom."