Debuginfod

提供: ArchWiki
2022年2月4日 (金) 09:16時点におけるNy-a (トーク | 投稿記録)による版 (リンクを日本語版に変更)
ナビゲーションに移動 検索に移動

関連記事

Debuginfod is a service providing debug information over a HTTP API.

Installation

debuginfodインストール します。

Usage

ノート: debuginfod after version 0.186-3 adds DEBUGINFOD_URLS to the environment on login.

Set the 環境変数 which tells the tooling where to look for debug symbols:

export DEBUGINFOD_URLS="https://debuginfod.archlinux.org/"

One can also use https://debuginfod.elfutils.org/ which works as a federated server and queries all available debuginfod servers.

Now a debugger can fetch debug symbols without having to install the appropriate debug package.

$ gdb /usr/bin/i3
[...]
Reading symbols from /usr/bin/i3...
Downloading 1.56 MB separate debug info for /usr/bin/i3
Reading symbols from /home/user/.cache/debuginfod_client/29129d26dbe557d2b56daf90327f64f527304dc1/debuginfo...
(gdb)

See debuginfod-find(1) for usage.

Debugger support

Several debuggers support utilizing debuginfod to find debug symbol and source code listing.

Package Status Notes
gdb Supported
delve Partial Support Supports debug symbols, missing source listing
KDE Crash Report Supported

See also