[SOLVED] no debugging symbols found (not the simple case)
ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I wasn't sure where to put this so if I need to move it just let me know.
I have a strange problem that I cannot figure out. When I use gdb to debug our rpm-installed program, it says (no debugging symbols found) when it loads. Thing is, when I use nm on the program it can print the symbols, and even stranger is if I use gdb on the program before it is packed up by rpmbuild it loads the debug symbols just fine.
Our program is built via the standard make using:
CFLAGS=-g -Wall -pedantic
and as I mentioned I can debug the resulting program. After the build, I package it up using:
Are the -devel or (-debuginfo if there is one) libraries installed on the new host?
Not sure what those are. However, if I overlay the bin from my "made" directory, (the bin that is not in the package), I can debug fine. Are -devel and/or -debuginfo something specified in the spec file?
So, even though it says the bin is not stripped using file it looks like it really might be. At least I assume that is what rpmbuild is doing in those calls. Is there a way to prevent rpmbuild from stripping the bins?