{
    "content": [
        {
            "type": "text",
            "text": "# gdbinit(5) (man)\n\n**Summary:** gdbinit - GDB initialization scripts\n\n**Synopsis:** /etc/gdb/gdbinit\n/etc/gdb/gdbinit.d/*\n~/.config/gdb/gdbinit\n~/.gdbinit\n./.gdbinit\n\n## See Also\n\n- gdb(1)\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (10 lines)\n- **DESCRIPTION** (7 lines) — 2 subsections\n  - /etc/gdb/gdbinit (4 lines)\n  - /etc/gdb/gdbinit.d (15 lines)\n- **OPTIONS** (1 lines)\n- **SEE ALSO** (12 lines)\n- **COPYRIGHT** (14 lines)\n\n## Full Content\n\n### NAME\n\ngdbinit - GDB initialization scripts\n\n### SYNOPSIS\n\n/etc/gdb/gdbinit\n\n/etc/gdb/gdbinit.d/*\n\n~/.config/gdb/gdbinit\n\n~/.gdbinit\n\n./.gdbinit\n\n### DESCRIPTION\n\nThese 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\n#### /etc/gdb/gdbinit\n\nSystem-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\n#### /etc/gdb/gdbinit.d\n\nSystem-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\n### OPTIONS\n\n### SEE ALSO\n\ngdb(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\n### COPYRIGHT\n\nCopyright (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)\n\n"
        }
    ],
    "structuredContent": {
        "command": "gdbinit",
        "section": "5",
        "mode": "man",
        "summary": "gdbinit - GDB initialization scripts",
        "synopsis": "/etc/gdb/gdbinit\n/etc/gdb/gdbinit.d/*\n~/.config/gdb/gdbinit\n~/.gdbinit\n./.gdbinit",
        "flags": [],
        "examples": [],
        "see_also": [
            {
                "name": "gdb",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/gdb/1/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 10,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 7,
                "subsections": [
                    {
                        "name": "/etc/gdb/gdbinit",
                        "lines": 4
                    },
                    {
                        "name": "/etc/gdb/gdbinit.d",
                        "lines": 15
                    }
                ]
            },
            {
                "name": "OPTIONS",
                "lines": 1,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 12,
                "subsections": []
            },
            {
                "name": "COPYRIGHT",
                "lines": 14,
                "subsections": []
            }
        ]
    }
}