How can I make Gdb work with Sun's C compiler?

Sun's C compiler only stores symbolic debugging information in
the .o files. Gdb wants to find that information in the executable.

You can force the symbols in the executable by passing the "-xs"
commandline option to Sun's C compiler.
Suggest a Site