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