Ubuntu implements the ability to dynamically get debug information

The developers of the Ubuntu distribution have introduced the debuginfod.ubuntu.com service, which allows debugging the programs supplied in the distribution without installing separate packages with debug information from the debuginfo repository. With the help of the new service, users have the ability to dynamically load debug symbols from an external server directly during debugging. This feature has been supported since the release of GDB 10 and Binutils 2.34. Debugging information is provided for packages from the main, universe, restricted, and multiverse repositories of all supported Ubuntu releases.

The debuginfod process that runs the service is an HTTP server for serving ELF/DWARF debugging information and source code. When built with debuginfod support, GDB can automatically connect to debuginfod servers to download missing debug information about files being processed, or to separate debug files and sources for the executable being debugged. To enable the debuginfod server, set the environment variable 'DEBUGINFOD_URLS="https://debuginfod.ubuntu.com"' before executing GDB.

Source: opennet.ru

Add a comment