[opensuse] Debug versions of local libraries
I would like to make debug information for libraries we make. Of course, I can compile and link the libraries this way, and install them. But I see that for openSUSE libraries, a better method is used: An RPM is made that contains the debug version of the library. This version of the library is not used when the application is run normally. This is used by gdb when running an application or examining a core file. There seems to be some intelligence to this so that gdp knows which version of the debug RPM is needed, and even suggests the command to get that version installed. These debug version of the librarys are perhaps installed in an alternate location from the regular use versions. Is there a description for how this is accomplished on openSUSE? Of most interest is how to set it up so that the debug version of the library is available to gdb. I looked around on the openSUSE site, but could not find anything. I guess I do not know where best to look... Yours sincerely, Roger Oberholtzer OPQ Systems / Ramböll RST Office: Int +46 10-615 60 20 Mobile: Int +46 70-815 1696 roger.oberholtzer@ramboll.se ________________________________________ Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden www.rambollrst.se -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Roger Oberholtzer <roger@opq.se> wrote:
I would like to make debug information for libraries we make. Of course, I can compile and link the libraries this way, and install them. But I see that for openSUSE libraries, a better method is used:
An RPM is made that contains the debug version of the library. This version of the library is not used when the application is run normally. This is used by gdb when running an application or examining a core file. There seems to be some intelligence to this so that gdp knows which version of the debug RPM is needed, and even suggests the command to get that version installed. These debug version of the librarys are perhaps installed in an alternate location from the regular use versions.
Is there a description for how this is accomplished on openSUSE? Of most interest is how to set it up so that the debug version of the library is available to gdb. I looked around on the openSUSE site, but could not find anything. I guess I do not know where best to look...
Yours sincerely,
Roger Oberholtzer
OPQ Systems / Ramböll RST
Office: Int +46 10-615 60 20 Mobile: Int +46 70-815 1696 roger.oberholtzer@ramboll.se ________________________________________
Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden www.rambollrst.se
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Roger, That should be asked on opensuse-packaging, or maybe opensuse-buildservice.. Greg -- Sent from my Android phone with K-9 Mail. Please excuse my brevity. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Tue, Aug 14, 2012 at 02:54:29PM +0200, Roger Oberholtzer wrote:
I would like to make debug information for libraries we make. Of course, I can compile and link the libraries this way, and install them. But I see that for openSUSE libraries, a better method is used:
An RPM is made that contains the debug version of the library. This version of the library is not used when the application is run normally. This is used by gdb when running an application or examining a core file. There seems to be some intelligence to this so that gdp knows which version of the debug RPM is needed, and even suggests the command to get that version installed. These debug version of the librarys are perhaps installed in an alternate location from the regular use versions.
Is there a description for how this is accomplished on openSUSE? Of most interest is how to set it up so that the debug version of the library is available to gdb. I looked around on the openSUSE site, but could not find anything. I guess I do not know where best to look...
Yours sincerely,
Roger Oberholtzer
Thanks Roger for your feedback. I'm redirecting your question to the opensuse-buildservice@opensuse.org list. The initial posting was: http://lists.openSUSE.org/opensuse/2012-08/msg00328.html Instead to complain any of us is able to do the same by replying to the correct list, set Reply-To, and by this the discussion is moved forward to the correct list. Thanks, Lars -- Lars Müller [ˈlaː(r)z ˈmʏlɐ] Samba Team + SUSE Labs SUSE Linux, Maxfeldstraße 5, 90409 Nürnberg, Germany
On Tue, 14 Aug 2012 14:54:29 +0200, Roger Oberholtzer <roger@opq.se> wrote:
An RPM is made that contains the debug version of the library.
Not quite. The applications and libraries are always built with debugging info enabled. After the build completed, the debug info is stripped off and put into a separate file. This File is then packaged in the -debuginfo.rpm.
Is there a description for how this is accomplished on openSUSE? Of most interest is how to set it up so that the debug version of the library is available to gdb.
As I wrote, gdb is able to read the debug info from a separate file and that is what we utilize.
I looked around on the openSUSE site, but could not find anything. I guess I do not know where best to look...
I'd ask on opensuse-factory as the chances to reach one of the openSUSE developers is much better there. Philipp -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (4)
-
Greg Freemyer
-
Lars Müller
-
Philipp Thomas
-
Roger Oberholtzer