Linux command
debuginfod 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Scan directories for ELF/DWARF files
debuginfod -F [/usr/lib/debug]
Start on a specific port
debuginfod -p [8002] -F [/usr/lib/debug]
Index RPM archives in a directory
debuginfod -R [/path/to/rpms]
Index DEB archives in a directory
debuginfod -U [/path/to/debs]
Run in verbose mode with custom database path
debuginfod -v -d [/var/cache/debuginfod.sqlite] -F [/usr/lib/debug]
Set scan interval and concurrent threads
debuginfod -t [600] -c [10] -F [/path/to/debug]
说明
debuginfod is a server for distributing ELF debugging information over HTTP. It indexes executables, shared libraries, and debug info, serving them to clients like gdb and systemtap on demand. The service enables automatic debugging symbol resolution without manually installing debug packages. Clients query by build-id to fetch matching debug information.
参数
- -p _port_
- HTTP server port (default 8002).
- -F
- Activate ELF/DWARF file scanning of specified paths.
- -R
- Scan for RPM archives.
- -U
- Scan for DEB/DDEB archives.
- -Z _ext_
- Activate additional archive pattern scanning for the given extension.
- -d _file_
- SQLite database file location (default ~/.debuginfod.sqlite).
- -c _num_
- Scanner queue thread limit.
- -C _num_
- Webapi thread pool size.
- -t _seconds_
- Directory rescan interval (default 300).
- -g _seconds_
- Grooming pass interval (default 86400).
- -I _regex_
- Include files matching POSIX extended regex.
- -X _regex_
- Exclude files matching POSIX extended regex.
- -L
- Traverse symbolic links during scanning.
- --passive
- Read-only mode; no scanning, only serve existing index.
- --cors
- Add CORS response headers for third-party webapp access.
- -v
- Increase verbosity (may be repeated).
FAQ
What is the debuginfod command used for?
debuginfod is a server for distributing ELF debugging information over HTTP. It indexes executables, shared libraries, and debug info, serving them to clients like gdb and systemtap on demand. The service enables automatic debugging symbol resolution without manually installing debug packages. Clients query by build-id to fetch matching debug information.
How do I run a basic debuginfod example?
Run `debuginfod -F [/usr/lib/debug]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -p _port_ do in debuginfod?
HTTP server port (default 8002).