{
    "mode": "man",
    "parameter": "GDBINIT",
    "section": "5",
    "url": "https://www.chedong.com/phpMan.php/man/GDBINIT/5/json",
    "generated": "2026-05-30T10:08:15Z",
    "synopsis": "/etc/gdb/gdbinit\n/etc/gdb/gdbinit.d/*\n~/.config/gdb/gdbinit\n~/.gdbinit\n./.gdbinit",
    "sections": {
        "NAME": {
            "content": "gdbinit - GDB initialization scripts\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "/etc/gdb/gdbinit\n\n/etc/gdb/gdbinit.d/*\n\n~/.config/gdb/gdbinit\n\n~/.gdbinit\n\n./.gdbinit\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "These files contain GDB commands to automatically execute during GDB startup.  The lines of\ncontents are canned sequences of commands, described in the GDB manual in node \"Sequences\" --\nshell command \"info -f gdb -n Sequences\".\n\nPlease read more in the GDB manual in node \"Startup\" -- shell command \"info -f gdb -n\nStartup\".\n",
            "subsections": [
                {
                    "name": "/etc/gdb/gdbinit",
                    "content": "System-wide initialization file.  It is executed unless user specified GDB option \"-nx\"\nor \"-n\".  See more in the GDB manual in node \"System-wide configuration\" -- shell command\n\"info -f gdb -n 'System-wide configuration'\".\n"
                },
                {
                    "name": "/etc/gdb/gdbinit.d",
                    "content": "System-wide initialization directory.  All files in this directory are executed on\nstartup unless user specified GDB option \"-nx\" or \"-n\", as long as they have a recognized\nfile extension.  See more in the GDB manual in node \"System-wide configuration\" -- shell\ncommand \"info -f gdb -n 'System-wide configuration'\".\n\n~~//..ccoonnffiigg//ggddbb//ggddbbiinniitt or ~~//..ggddbbiinniitt\nUser initialization file.  It is executed unless user specified GDB options \"-nx\", \"-n\"\nor \"-nh\".\n\n..ggddbbiinniitt\nInitialization file for current directory.  It may need to be enabled with GDB security\ncommand \"set auto-load local-gdbinit\".  See more in the GDB manual in node \"Init File in\nthe Current Directory\" -- shell command \"info -f gdb -n 'Init File in the Current\nDirectory'\".\n"
                }
            ]
        },
        "OPTIONS": {
            "content": "",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "gdb(1), \"info -f gdb -n Startup\"\n\nThe full documentation for GDB is maintained as a Texinfo manual.  If the \"info\" and \"gdb\"\nprograms and GDB's Texinfo documentation are properly installed at your site, the command\n\ninfo gdb\n\nshould give you access to the complete manual.\n\nUsing GDB: A Guide to the GNU Source-Level Debugger, Richard M. Stallman and Roland H. Pesch,\nJuly 1991.\n",
            "subsections": []
        },
        "COPYRIGHT": {
            "content": "Copyright (c) 1988-2022 Free Software Foundation, Inc.\n\nPermission is granted to copy, distribute and/or modify this document under the terms of the\nGNU Free Documentation License, Version 1.3 or any later version published by the Free\nSoftware Foundation; with the Invariant Sections being \"Free Software\" and \"Free Software\nNeeds Free Documentation\", with the Front-Cover Texts being \"A GNU Manual,\" and with the\nBack-Cover Texts as in (a) below.\n\n(a) The FSF's Back-Cover Text is: \"You are free to copy and modify this GNU Manual.  Buying\ncopies from GNU Press supports the FSF in developing GNU and promoting software freedom.\"\n\n\n\ngdb-                                         2024-06-13                                   GDBINIT(5)",
            "subsections": []
        }
    },
    "summary": "gdbinit - GDB initialization scripts",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "gdb",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/gdb/1/json"
        }
    ]
}