m (→Configuration) |
|||
Line 23: | Line 23: | ||
== Disabling == | == Disabling == | ||
If you wish to completely opt out of this service, simply set | If you wish to completely opt out of this service, simply set $DEBUGINFOD_URLS to an empty string. | ||
If you have a local debuginfod cache that you'd like to use, but don't want to attempt any upstream debuginfod queries, set | If you have a local debuginfod cache that you'd like to use, but don't want to attempt any upstream debuginfod queries, set $DEBUGINFOD_URLS to something non-empty but ineffective, such as /dev/null. | ||
== Security FAQ == | == Security FAQ == |
Revision as of 21:06, 25 May 2021
DEBUGINFOD server
This server provides ELF or DWARF debugging information, plus associated source code, covering all packages and architectures of recent versions of Fedora. It works by periodically indexing all relevant RPMs from Koji, and extracting any needed file on the fly. Debugger-type tools automatically request files one by one. After being downloaded, each file is stored in a cache under your home directory, where the tools can immediately use it.
Configuration
On Fedora 32 or later, set an environment variable.
% export DEBUGINFOD_URLS=https://debuginfod.fedoraproject.org/
On Fedora 35 (rawhide) or later, this environment variable is automatically set via /etc/profile.d/debuginfod.*
files.
If you operate your own debuginfod server for local projects, add its URL to $DEBUGINFOD_URLS (space-separated). If you'd like to see progress diagnostics during downloads, set:
% export DEBUGINFOD_PROGRESS=1
Then, enjoy using gdb, stap, perf, eu-stack, and many other debugging-related tools without the interruption of % sudo yum debuginfo-install XYZZY
.
Disabling
If you wish to completely opt out of this service, simply set $DEBUGINFOD_URLS to an empty string.
If you have a local debuginfod cache that you'd like to use, but don't want to attempt any upstream debuginfod queries, set $DEBUGINFOD_URLS to something non-empty but ineffective, such as /dev/null.
Security FAQ
(tbd)
See Also
For more information see elfutils status page and Changes/DebuginfodByDefault.