Welcome to the most active Linux Forum on the web.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 10-23-2008, 11:05 AM   #1
Senior Member
Registered: Sep 2004
Distribution: FreeBSD 9.1, Kubuntu 12.10
Posts: 3,078

Rep: Reputation: Disabled
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.
Old 10-23-2008, 09:52 PM   #2
Senior Member
Registered: Sep 2004
Distribution: FreeBSD 9.1, Kubuntu 12.10
Posts: 3,078

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
gdb debugging assembly with no symbols Four Programming 5 10-01-2008 09:47 PM
Debugger selectively not using symbols in library with symbols Millenniumman Programming 5 03-25-2007 10:44 AM
Scribus installation problem, sez I need automake 1.6 when automake 1.9 is istalled Rockgod2099 Linux - Software 13 11-14-2004 07:37 PM
i have used 'ggdb3' when i compile a software,why gdb didn't find debugging symbols icoming Programming 0 08-30-2004 02:35 PM

All times are GMT -5. The time now is 01:56 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration