LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

debuginfod-find

client for requesting debug information from debuginfod servers

TLDR

Request debuginfo based on build ID
$ debuginfod-find -v debuginfo [build_id]
copy
Fetch the executable for a build ID
$ debuginfod-find executable [build_id]
copy
Fetch a source file for a build ID
$ debuginfod-find source [build_id] [/path/to/source.c]
copy
Fetch debuginfo for an ELF file directly
$ debuginfod-find debuginfo [/path/to/binary]
copy

SYNOPSIS

debuginfod-find [options] type build-id

DESCRIPTION

debuginfod-find requests debug information from debuginfod servers. It can retrieve debuginfo, executable, or source files based on the build ID of an ELF binary.Part of the elfutils package, it enables on-demand downloading of debug symbols for debugging tools like gdb.

PARAMETERS

debuginfo build-id

Fetch debug information file
executable build-id
Fetch executable file
source build-id path
Fetch source file
-v
Verbose output

CONFIGURATION

DEBUGINFOD_URLS (environment variable)

Space-separated list of debuginfod server URLs to query for debug information.
DEBUGINFOD_CACHE_PATH (environment variable)
Directory for caching downloaded debug files (default: $HOME/.debuginfodclientcache).

INSTALL

sudo apt install debuginfod
copy
sudo pacman -S debuginfod
copy
sudo apk add libdebuginfod
copy

CAVEATS

Requires network access and configured debuginfod servers. Build IDs can be found with `readelf -n` or `eu-readelf -n`.

SEE ALSO

debuginfod(8), gdb(1), readelf(1)

RESOURCES

Copied to clipboard
Kai