1GDBINIT(5) GNU Development Tools GDBINIT(5)
2
3
4
6 gdbinit - GDB initialization scripts
7
9 /etc/gdbinit
10
11 ~/.config/gdb/gdbinit
12
13 ~/.gdbinit
14
15 ./.gdbinit
16
18 These files contain GDB commands to automatically execute during GDB
19 startup. The lines of contents are canned sequences of commands,
20 described in the GDB manual in node "Sequences" -- shell command "info
21 -f gdb -n Sequences".
22
23 Please read more in the GDB manual in node "Startup" -- shell command
24 "info -f gdb -n Startup".
25
26 /etc/gdbinit
27 System-wide initialization file. It is executed unless user
28 specified GDB option "-nx" or "-n". See more in the GDB manual in
29 node "System-wide configuration" -- shell command "info -f gdb -n
30 'System-wide configuration'".
31
32 (not enabled with "--with-system-gdbinit-dir" during compilation)
33 System-wide initialization directory. All files in this directory
34 are executed on startup unless user specified GDB option "-nx" or
35 "-n", as long as they have a recognized file extension. See more
36 in the GDB manual in node "System-wide configuration" -- shell
37 command "info -f gdb -n 'System-wide configuration'".
38
39 ~/.config/gdb/gdbinit or ~/.gdbinit
40 User initialization file. It is executed unless user specified GDB
41 options "-nx", "-n" or "-nh".
42
43 .gdbinit
44 Initialization file for current directory. It may need to be
45 enabled with GDB security command "set auto-load local-gdbinit".
46 See more in the GDB manual in node "Init File in the Current
47 Directory" -- shell command "info -f gdb -n 'Init File in the
48 Current Directory'".
49
52 gdb(1), "info -f gdb -n Startup"
53
54 The full documentation for GDB is maintained as a Texinfo manual. If
55 the "info" and "gdb" programs and GDB's Texinfo documentation are
56 properly installed at your site, the command
57
58 info gdb
59
60 should give you access to the complete manual.
61
62 Using GDB: A Guide to the GNU Source-Level Debugger, Richard M.
63 Stallman and Roland H. Pesch, July 1991.
64
66 Copyright (c) 1988-2022 Free Software Foundation, Inc.
67
68 Permission is granted to copy, distribute and/or modify this document
69 under the terms of the GNU Free Documentation License, Version 1.3 or
70 any later version published by the Free Software Foundation; with the
71 Invariant Sections being "Free Software" and "Free Software Needs Free
72 Documentation", with the Front-Cover Texts being "A GNU Manual," and
73 with the Back-Cover Texts as in (a) below.
74
75 (a) The FSF's Back-Cover Text is: "You are free to copy and modify this
76 GNU Manual. Buying copies from GNU Press supports the FSF in
77 developing GNU and promoting software freedom."
78
79
80
81gdb-Fedora Linux 12.1-7.fc37 2023-01-27 GDBINIT(5)