public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: problems getting debugging symbols using gcc on sparc solaris 8
@ 2002-04-05  6:05 DavideBernini.guest
  0 siblings, 0 replies; 2+ messages in thread
From: DavideBernini.guest @ 2002-04-05  6:05 UTC (permalink / raw)
  To: gcc-help

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 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* problems getting debugging symbols using gcc on sparc solaris 8
@ 2002-04-05  1:21 Andy Crichton
  0 siblings, 0 replies; 2+ messages in thread
From: Andy Crichton @ 2002-04-05  1:21 UTC (permalink / raw)
  To: gcc-help

gcc version 2.95.3 20010315
sun4u sparc SUNW,Ultra-250
solaris 8

all packages from sunfreeware.com

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)...


If I compile directly with no intermediate stage
cc -g -o ... ...
I get symbols

Is this something to do with the libraries I am linking with (the compile is
fairly complex and involves the oracle precompiler)

Thanks in advance
Andy Crichton



__________________________
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. The contents are confidential and may be privileged.
Any views or opinions expressed are those of the sender and may not reflect the views or opinions of the company and the company accepts no liability in respect thereof.
If you have received this email in error please notify postmaster@abibuildingdata.com immediately.

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-04-05  9:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-05  6:05 problems getting debugging symbols using gcc on sparc solaris 8 DavideBernini.guest
  -- strict thread matches above, loose matches on Subject: below --
2002-04-05  1:21 Andy Crichton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).