Variable: gdb-debuginfod-enable-setting

gdb-debuginfod-enable-setting is a customizable variable defined in gdb-mi.el.gz.

Value

ask

Documentation

Whether to enable downloading missing debug info from debuginfod servers.

The debuginfod servers are HTTP servers for distributing source files and debug info files of programs. If GDB was built with debuginfod support, it can query these servers when you debug a program for which some of these files are not available locally, and download the files if the servers have them.

The value nil means never to download from debuginfod servers. The value t means always download from debuginfod servers when some source or debug info files are missing. The value ask, the default, means ask at the beginning of each debugging session whether to download from debuginfod servers during that session.

This variable was added, or its default value changed, in Emacs 29.1.

Probably introduced at or before Emacs version 29.1.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/gdb-mi.el.gz
(defcustom gdb-debuginfod-enable-setting
  ;; debuginfod servers are only for ELF executables, and elfutils, of
  ;; which libdebuginfod is a part, is not usually available on
  ;; MS-Windows.
  (if (not (eq system-type 'windows-nt)) 'ask)
  "Whether to enable downloading missing debug info from debuginfod servers.
The debuginfod servers are HTTP servers for distributing source
files and debug info files of programs.  If GDB was built with
debuginfod support, it can query these servers when you debug a
program for which some of these files are not available locally,
and download the files if the servers have them.

The value nil means never to download from debuginfod servers.
The value t means always download from debuginfod servers when
some source or debug info files are missing.
The value `ask', the default, means ask at the beginning of each
debugging session whether to download from debuginfod servers
during that session."
  :type '(choice (const :tag "Never download from debuginfod servers" nil)
                 (const :tag "Download from debuginfod servers when necessary" t)
                 (const :tag "Ask whether to download for each session" ask))
  :group 'gdb
  :version "29.1")