DEBUGINFOD-FIND(1) General Commands Manual DEBUGINFOD-FIND(1) (NAME) debuginfod-find - debuginfod (SYNOPSIS) debuginfod-find [OPTION]... debuginfo BUILDID debuginfod-find [OPTION]... debuginfo PATH debuginfod-find [OPTION]... executable BUILDID debuginfod-find [OPTION]... executable PATH debuginfod-find [OPTION]... source BUILDID /FILENAME debuginfod-find [OPTION]... source PATH /FILENAME debuginfod-find [OPTION]... metadata KEY VALUE (DESCRIPTION) debuginfod-find debuginfod (debuginfo) . () 0 . . debuginfod (buildid) . (binary notes) ELF/DWARF . /bin/ls ELF GNU_BUILD_ID : % readelf -n /bin/ls | grep -A4 build.id Note section [ 4] '.note.gnu.buildid' of 36 bytes at offset 0x340: Owner Data size Type GNU 20 GNU_BUILD_ID Build ID: 8713b9c3fb8a720137a4a08b325905c7aaf8429d BUILDID : 8713b9c3fb8a720137a4a08b325905c7aaf8429d BUILDID debuginfod-find (PATH) ELF . [0-9a-f] . "deadbeef" ./deadbeef . debuginfo BUILDID buildid .*debug_* . debuginfo strip (unstripped). executable BUILDID buildid . strip . ET_DYN . source BUILDID /SOURCE/FILE buildid . . DWARF AT_comp_dir (CU) CU . debuginfod CU "/" . : CU . AT_comp_dir debuginfo . comp_dir /bin/ls : % debuginfod-find debuginfo /bin/ls ~/.cache/debuginfod_client/03529d48345409576cd5c82a56ad08555088d353/ % eu-readelf -w ~/.cache/debuginfod_client/03529d48345409576cd5c82a56ad08555088d353/debuginfo | grep comp_dir comp_dir (line_strp) "/usr/src/debug/coreutils-9.1-6.fc37.x86_64/separate" : ../ /./ /// . debuginfod . debuginfod RFC3986 5.2.4 ( ) // / . : #include source BUILDID /usr/include/stdio.h /path/to/foo.c source BUILDID /path/to/foo.c AT_comp_dir=/zoo/ source BUILDID /zoo//../bar/foo.c section BUILDID SECTION-NAME buildid (section) debuginfo . metadata KEY VALUE debuginfod / . buildid . KEY VALUE DESCRIPTION file path path glob pattern pattern fnmatch(FNM_PATHNAME) buildid hex buildid : { "results":[ { "type":"executable", "buildid":"f0aa15b8aba4f3c28cac3c2a73801fefa644a9f2", "file":"/usr/local/bin/hello", "archive":"/opt/elfutils/tests/test-2290642/R/rhel7/hello2-1.0-2.x86_64.rpm" }, { "type":"executable", "buildid":"bc1febfd03ca05e030f0d205f7659db29f8a4b30", "file":"hello2" } ], "complete":true } stdout JSON . . . . JSON . NAME TYPE DESCRIPTION buildid string (buildid) type string debuginfo executable file string archive string type source . . (OPTIONS) -v --verbose ( ) http . --help --usage . (SECURITY) () IMA RPM debuginfod debuginfod-find . $DEBUGINFOD_URLS . debuginfod-find (ignore mode) . HTTPS HTTP . libcurl http[s]://userid:password@hostname. ( debuginfod .) See the file man7/debuginfod-client-config.7. (SEE ALSO) debuginfod(8) debuginfod_find_debuginfod(3) DEBUGINFOD-FIND(1)