-   Programming (
-   -   can't get debugging symbols when using automake (

ta0kira 10-23-2008 11:05 AM

can't get debugging symbols when using automake
I can't seem to get debugging symbols to be added (both libraries and binaries) with automake. When make runs it compiles with -g (after all of the input files, though) and I've added -ggdb to the environment variables CFLAGS and CXXFLAGS (which also show up in the compilation lines after all input files,) and I tried adding -g to AM_CXXFLAGS in, but it still shows up after all of the input files. I checked and the linking stage doesn't seem to have -s or -S, so I think the problem is that the debug flags come after all of the files are processed. and are pretty standard; just enough to get the job done. Do people just not expect debugging symbols when they use automake? Thanks.

ta0kira 10-23-2008 09:52 PM

Nevermind. For some reason gdb wasn't recognizing them when I used "target exec" instead of specifying the program on the command line.

All times are GMT -5. The time now is 08:38 PM.