「Debuginfod」の版間の差分

提供: ArchWiki
ナビゲーションに移動 検索に移動
(相違点なし)

2022年2月3日 (木) 07:48時点における版

関連記事

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

Installation

Install debuginfod.

Usage

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

Set the environment variable 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