I'm having trouble walking through emacs source code in gdb. I think I'm missing debug symbols.
Following a suggestion from https://stackoverflow.com/a/4298982/2752242, I tried:
./configure CFLAGS="-ggdb3 -O0" CXXFLAGS="-ggdb3 -O0" LDFLAGS="-ggdb3" --with-gif=no --prefix=$HOME/local/apps/emacs-24.4/
But, that didn't work.
Are there instructions on compiling with debug symbols? Thanks!
CFLAGS='-O0 -ggdb -g3' ./configure --enable-checking --enable-asserts
. I'm not a pro, but I'm not sure you can give arguments toconfigure
the way you did it. Usually, those come before calling the program, and configure takes those from environment it's called with, but maybe it's something new...