no debugging symbols found (not the simple case)
Hello all,
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:
cmd="rpmbuild -v -bb ptsnmp.spec --define \"ver ${cmvc_release}\" --define \"rel ${cmvc_level}\" --define \"_topdir $rpmdir\""
When this package is installed via rpm, the binary on the machine shows all the debug info via nm, file shows it is not stripped:
pt_snmp: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GN
U/Linux 2.6.9, not stripped
yet when I try to debug it I get the no debugging symbols found.
This is really taxing my brain and I am sure I am just missing something, so if anyone has a clue as to what the problem could be I would appreciate it very much.
Thanks for any help.
|