[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Automake] How to get debug symbols in the executable?
From: |
Marcelo Zimbres |
Subject: |
[Automake] How to get debug symbols in the executable? |
Date: |
Sat, 4 Aug 2012 14:10:59 -0300 |
Hi,
I am having some trouble to debug programs built from autotools. I am
following the steps:
$ ./configure CXXFLAGS="-g -O0"
$ make
$ libtool --mode=execute gdb --arg ./swat_find arg_list
When I run the last line, I get the error message:
Reading symbols from
/home/marcelo/Public/swat/debug/.libs/lt-swat_find...(no debugging symbols
found)...done.
Why there are no symbols? The output of make shows the flags have been
passed to gcc, for example:
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include/root
-I/usr/local/include/root -I -I -g -O0 -MT libswat_la-TDKernel.lo -MD -MP
-MF .deps/libswat_la-TDKernel.Tpo -c ../TDKernel.cxx -o
libswat_la-TDKernel.o >/dev/null 2>&1
I couldn't also find the -s option which would discard the symbols. Can
someone help me?
Thanks,
Marcelo
ps. I am using automake version 1.11.3
- [Automake] How to get debug symbols in the executable?,
Marcelo Zimbres <=