Problem while using GDB to debug a binary generated with Sun's CC compiler
807578Feb 10 2008 — edited Feb 12 2008When I compile any .cpp file with CC compiler using -g option:
CC -g test.cpp
and use GDB to debug, it works fine. However if I compile in two steps as in:
CC -g test.cpp -o test.o
CC -g test.o
GDB complains and says "Debug Symbol not found"
THis is definately not correct, however not sure if its a GDB Bug or SunCompiler Bug. I've checked on both forums however could not fin any such bug reported? Is it that I am missing on something ?
Regards,
Sumit