{
    "mode": "man",
    "parameter": "gdb-add-index",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/gdb-add-index/1/json",
    "generated": "2026-06-15T16:01:39Z",
    "synopsis": "gdb-add-index filename",
    "sections": {
        "NAME": {
            "content": "gdb-add-index - Add index files to speed up GDB\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "gdb-add-index filename\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "When GDB finds a symbol file, it scans the symbols in the file in order to construct an\ninternal symbol table.  This lets most GDB operations work quickly--at the cost of a delay\nearly on.  For large programs, this delay can be quite lengthy, so GDB provides a way to\nbuild an index, which speeds up startup.\n\nTo determine whether a file contains such an index, use the command \"readelf -S filename\":\nthe index is stored in a section named \".gdbindex\".  The index file can only be produced on\nsystems which use ELF binaries and DWARF debug information (i.e., sections named \".debug*\").\n\ngdb-add-index uses GDB and objdump found in the PATH environment variable.  If you want to\nuse different versions of these programs, you can specify them through the GDB and OBJDUMP\nenvironment variables.\n\nSee more in the GDB manual in node \"Index Files\" -- shell command \"info -f gdb -n \"Index\nFiles\"\".\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "The 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                             GDB-ADD-INDEX(1)",
            "subsections": []
        }
    },
    "summary": "gdb-add-index - Add index files to speed up GDB",
    "flags": [],
    "examples": [],
    "see_also": []
}