|
|
ab2726 |
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
|
|
|
ab2726 |
From: =?UTF-8?q?Alexandra=20H=C3=A1jkov=C3=A1?= <ahajkova@redhat.com>
|
|
|
ab2726 |
Date: Mon, 10 Jan 2022 13:00:50 +0100
|
|
|
ab2726 |
Subject: gdb-rhbz2024875-expand-documentation-for-debuginfod.patch
|
|
|
ab2726 |
|
|
|
ab2726 |
;;Backport upstream commit from Aaron Merey
|
|
|
ab2726 |
;;3ea44f21299 gdb.texinfo: Expand documentation for debuginfod
|
|
|
ab2726 |
|
|
|
ab2726 |
gdb.texinfo: Expand documentation for debuginfod
|
|
|
ab2726 |
|
|
|
ab2726 |
Add section describing GDB's usage of debuginfod.
|
|
|
ab2726 |
|
|
|
ab2726 |
Refer to this new section in the description of the '--with-debuginfod'
|
|
|
ab2726 |
configure option.
|
|
|
ab2726 |
|
|
|
ab2726 |
Mention debuginfod in the 'Separate Debug Files' section.
|
|
|
ab2726 |
|
|
|
ab2726 |
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
|
|
|
ab2726 |
--- a/gdb/doc/gdb.texinfo
|
|
|
ab2726 |
+++ b/gdb/doc/gdb.texinfo
|
|
|
ab2726 |
@@ -184,6 +184,7 @@ software in general. We will miss him.
|
|
|
ab2726 |
the operating system
|
|
|
ab2726 |
* Trace File Format:: GDB trace file format
|
|
|
ab2726 |
* Index Section Format:: .gdb_index section format
|
|
|
ab2726 |
+* Debuginfod:: Download debugging resources with @code{debuginfod}
|
|
|
ab2726 |
* Man Pages:: Manual pages
|
|
|
ab2726 |
* Copying:: GNU General Public License says
|
|
|
ab2726 |
how you can copy and share GDB
|
|
|
ab2726 |
@@ -21373,7 +21374,9 @@ For the ``build ID'' method, @value{GDBN} looks in the
|
|
|
ab2726 |
a file named @file{@var{nn}/@var{nnnnnnnn}.debug}, where @var{nn} are the
|
|
|
ab2726 |
first 2 hex characters of the build ID bit string, and @var{nnnnnnnn}
|
|
|
ab2726 |
are the rest of the bit string. (Real build ID strings are 32 or more
|
|
|
ab2726 |
-hex characters, not 10.)
|
|
|
ab2726 |
+hex characters, not 10.) @value{GDBN} can automatically query
|
|
|
ab2726 |
+@code{debuginfod} servers using build IDs in order to download separate debug
|
|
|
ab2726 |
+files that cannot be found locally. For more information see @ref{Debuginfod}.
|
|
|
ab2726 |
@end itemize
|
|
|
ab2726 |
|
|
|
ab2726 |
So, for example, suppose you ask @value{GDBN} to debug
|
|
|
ab2726 |
@@ -21394,6 +21397,10 @@ debug information files, in the indicated order:
|
|
|
ab2726 |
@file{/usr/lib/debug/usr/bin/ls.debug}.
|
|
|
ab2726 |
@end itemize
|
|
|
ab2726 |
|
|
|
ab2726 |
+If the debug file still has not been found and @code{debuginfod}
|
|
|
ab2726 |
+(@pxref{Debuginfod}) is enabled, @value{GDBN} will attempt to download the
|
|
|
ab2726 |
+file from @code{debuginfod} servers.
|
|
|
ab2726 |
+
|
|
|
ab2726 |
@anchor{debug-file-directory}
|
|
|
ab2726 |
Global debugging info directories default to what is set by @value{GDBN}
|
|
|
ab2726 |
configure option @option{--with-separate-debug-dir}. During @value{GDBN} run
|
|
|
ab2726 |
@@ -38746,12 +38753,12 @@ Use the curses library instead of the termcap library, for text-mode
|
|
|
ab2726 |
terminal operations.
|
|
|
ab2726 |
|
|
|
ab2726 |
@item --with-debuginfod
|
|
|
ab2726 |
-Build @value{GDBN} with libdebuginfod, the debuginfod client library.
|
|
|
ab2726 |
-Used to automatically fetch source files and separate debug files from
|
|
|
ab2726 |
-debuginfod servers using the associated executable's build ID. Enabled
|
|
|
ab2726 |
-by default if libdebuginfod is installed and found at configure time.
|
|
|
ab2726 |
-debuginfod is packaged with elfutils, starting with version 0.178. You
|
|
|
ab2726 |
-can get the latest version from `https://sourceware.org/elfutils/'.
|
|
|
ab2726 |
+Build @value{GDBN} with @file{libdebuginfod}, the @code{debuginfod} client
|
|
|
ab2726 |
+library. Used to automatically fetch ELF, DWARF and source files from
|
|
|
ab2726 |
+@code{debuginfod} servers using build IDs associated with any missing
|
|
|
ab2726 |
+files. Enabled by default if @file{libdebuginfod} is installed and found
|
|
|
ab2726 |
+at configure time. For more information regarding @code{debuginfod} see
|
|
|
ab2726 |
+@ref{Debuginfod}.
|
|
|
ab2726 |
|
|
|
ab2726 |
@item --with-libunwind-ia64
|
|
|
ab2726 |
Use the libunwind library for unwinding function call stack on ia64
|
|
|
ab2726 |
@@ -47012,6 +47019,82 @@ switch (die->tag)
|
|
|
ab2726 |
@}
|
|
|
ab2726 |
@end smallexample
|
|
|
ab2726 |
|
|
|
ab2726 |
+@node Debuginfod
|
|
|
ab2726 |
+@appendix Download debugging resources with Debuginfod
|
|
|
ab2726 |
+@cindex debuginfod
|
|
|
ab2726 |
+
|
|
|
ab2726 |
+@code{debuginfod} is an HTTP server for distributing ELF, DWARF and source
|
|
|
ab2726 |
+files.
|
|
|
ab2726 |
+
|
|
|
ab2726 |
+With the @code{debuginfod} client library, @file{libdebuginfod}, @value{GDBN}
|
|
|
ab2726 |
+can query servers using the build IDs associated with missing debug info,
|
|
|
ab2726 |
+executables and source files in order to download them on demand.
|
|
|
ab2726 |
+
|
|
|
ab2726 |
+For instructions on building @value{GDBN} with @file{libdebuginfod},
|
|
|
ab2726 |
+@pxref{Configure Options,,--with-debuginfod}. @code{debuginfod} is packaged
|
|
|
ab2726 |
+with @code{elfutils}, starting with version 0.178. See
|
|
|
ab2726 |
+@uref{https://sourceware.org/elfutils/Debuginfod.html} for more information
|
|
|
ab2726 |
+regarding @code{debuginfod}.
|
|
|
ab2726 |
+
|
|
|
ab2726 |
+@menu
|
|
|
ab2726 |
+* Debuginfod Settings:: Configuring debuginfod with @value{GDBN}
|
|
|
ab2726 |
+@end menu
|
|
|
ab2726 |
+
|
|
|
ab2726 |
+@node Debuginfod Settings
|
|
|
ab2726 |
+@section Debuginfod Settings
|
|
|
ab2726 |
+
|
|
|
ab2726 |
+@value{GDBN} provides the following commands for configuring @code{debuginfod}.
|
|
|
ab2726 |
+
|
|
|
ab2726 |
+@table @code
|
|
|
ab2726 |
+@kindex set debuginfod
|
|
|
ab2726 |
+@anchor{set debuginfod}
|
|
|
ab2726 |
+@item set debuginfod
|
|
|
ab2726 |
+@itemx set debuginfod on
|
|
|
ab2726 |
+@cindex enable debuginfod
|
|
|
ab2726 |
+@value{GDBN} will attempt to query @code{debuginfod} servers when missing debug
|
|
|
ab2726 |
+info or source files.
|
|
|
ab2726 |
+
|
|
|
ab2726 |
+@item set debuginfod off
|
|
|
ab2726 |
+@value{GDBN} will not attempt to query @code{debuginfod} servers when missing
|
|
|
ab2726 |
+debug info or source files. By default, @code{debuginfod} is set to @code{off}
|
|
|
ab2726 |
+for non-interactive sessions.
|
|
|
ab2726 |
+
|
|
|
ab2726 |
+@item set debuginfod ask
|
|
|
ab2726 |
+@value{GDBN} will prompt the user to enable or disable @code{debuginfod} before
|
|
|
ab2726 |
+attempting to perform the next query. By default, @code{debuginfod} is set to
|
|
|
ab2726 |
+@code{ask} for interactive sessions.
|
|
|
ab2726 |
+
|
|
|
ab2726 |
+@kindex show debuginfod status
|
|
|
ab2726 |
+@item show debuginfod status
|
|
|
ab2726 |
+Show whether @code{debuginfod} is set to @code{on}, @code{off} or @code{ask}.
|
|
|
ab2726 |
+
|
|
|
ab2726 |
+@kindex set debuginfod urls
|
|
|
ab2726 |
+@cindex configure debuginfod URLs
|
|
|
ab2726 |
+@item set debuginfod urls
|
|
|
ab2726 |
+@itemx set debuginfod urls @var{urls}
|
|
|
ab2726 |
+Set the space-separated list of URLs that @code{debuginfod} will attempt to
|
|
|
ab2726 |
+query. Only @code{http://}, @code{https://} and @code{file://} protocols
|
|
|
ab2726 |
+should be used. The default value of @code{debuginfod urls} is copied from
|
|
|
ab2726 |
+the @var{DEBUGINFOD_URLS} environment variable.
|
|
|
ab2726 |
+
|
|
|
ab2726 |
+@kindex show debuginfod urls
|
|
|
ab2726 |
+@item show debuginfod urls
|
|
|
ab2726 |
+Display the list of URLs that @code{debuginfod} will attempt to query.
|
|
|
ab2726 |
+
|
|
|
ab2726 |
+@kindex set debuginfod verbose
|
|
|
ab2726 |
+@cindex debuginfod verbosity
|
|
|
ab2726 |
+@item set debuginfod verbose
|
|
|
ab2726 |
+@itemx set debuginfod verbose @var{n}
|
|
|
ab2726 |
+Enable or disable @code{debuginfod}-related output. Use a non-zero value
|
|
|
ab2726 |
+to enable and @code{0} to disable. @code{debuginfod} output is shown by
|
|
|
ab2726 |
+default.
|
|
|
ab2726 |
+
|
|
|
ab2726 |
+@kindex show debuginfod verbose
|
|
|
ab2726 |
+@item show debuginfod verbose
|
|
|
ab2726 |
+Show the current verbosity setting.
|
|
|
ab2726 |
+
|
|
|
ab2726 |
+@end table
|
|
|
ab2726 |
+
|
|
|
ab2726 |
@node Man Pages
|
|
|
ab2726 |
@appendix Manual pages
|
|
|
ab2726 |
@cindex Man pages
|