This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: problems getting debugging symbols using gcc on sparc solaris 8


Hi,

> Compile with the following
> cc -g -I ...  -c  etc...
> cc -s -g -o ...  ...
> run gdb (version 5.1) on the binary and I get
> (no debugging symbols found)...

To obtain debugging symbols you shouldn't use the -s switch: it tells the
compiler to remove all the symbol table from the object files. 
Just do gcc -g -o ...

Regards,
	Davide 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]