This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: problems getting debugging symbols using gcc on sparc solaris 8
- From: DavideBernini dot guest at IntesaBci dot it
- To: gcc-help at gcc dot gnu dot org
- Date: Fri, 5 Apr 2002 11:25:53 +0200
- Subject: Re: problems getting debugging symbols using gcc on sparc solaris 8
- Reply-to: DavideBernini dot guest at IntesaBci dot it
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