I used to use GDB to debug my C/C++ program. But after the server crashed and reinstalled, the GDB is not working properly. After the program reports a 'core dumped', actually the core file is not found. My flags to compile is:
CFLAGS= -ggdb -g -pg -Wall -O2 $(shell pkg-config --libs glib-2.0 gthread-2.0 --cflags glib-2.0)
And I also set this:
ulimit -c unlimited
I already remove all object/executable files and recompile. But the core file is simply missing. Could anybody tell what is other probable reason? Thanks.