Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Problem while using GDB to debug a binary generated with Sun's CC compiler

807578Feb 10 2008 — edited Feb 12 2008
When 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 11 2008
Added on Feb 10 2008
4 comments
154 views