Debug information for shipped packages
This document (7002923) is provided subject to the disclaimer at the end of this document.
Environment
SUSE Linux Enterprise Server 11
Situation
Programs and libraries delivered as part of SLES or SLED are shipped with debug information removed. This means that when a program is loaded into a debugger, internal symbols are unknown, and internal functions are shown as question marks.
Resolution
Each package has two debug information packages. One called -debuginfo and one called -debugsource. A debugger, such as gdb with the ddd frontend, is able to display values of symbols using the information from the -debuginfo package. With the -debugsource package it is additionally able to display the program's source code while debugging.
For example, since almost all programs use glibc in some capacity, it is almost always necessary to install the packages glibc-debuginfo and glibc-debugsource, in order to have usable output during a debugging session.
Please take care to use the exact same build version for the debug information packages as for the main package. Any difference between the two can lead to wildly misleading output from the debugger
Additional Information
For this reason, customers with support contracts who want application crashes to be analysed by SUSE Technical Services do not have to install these debug packages, unless there is a desire to debug or analyse a problem locally.
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:7002923
- Creation Date: 07-Apr-2009
- Modified Date:14-Mar-2021
-
- SUSE Linux Enterprise Desktop
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com