Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Is 'cc' broken or am I??
@ 1996-11-22  5:00 Christopher Keller
  1996-11-23  5:00 ` Stephen Stuart
  1996-12-02  5:00 ` Volker Hejny
  0 siblings, 2 replies; 3+ messages in thread
From: Christopher Keller @ 1996-11-22  5:00 UTC (permalink / raw)



Has anyone tried the '-g' option on the cc compiler and found the little
problem with path names to the source code?  Apparently, if your final
executable resides in a different location then the source, gdb is
unable to bring up the source code during debugging sessions. However,
if you include the absolute path to the source code when compiling---

"cc -o foo /home/ckeller/foo.c"  instead of

"cc -o foo foo.c"

Then everything works fine and gdb can correctly find the source, no
matter where the
executable.  I refuse to change thirty or so different makefiles to hack
it together.
I find it hard to believe there is this big of a flaw in the Digital
Unix C compiler, but you never know.  Have I missed some kind of flag??
Eventually, I plan to use gcc, but right now I am trying to
enjoy using the taso and xtaso flags with the regular c compiler.

Thanks.



-- 
Christopher Keller		   Software Engineer
ckeller@fived.c3i.saic.com         "5D -- Comming to a theatre near
you!"
Science Applications International Corporation   (SAIC - Annapolis, MD)



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

end of thread, other threads:[~1996-12-02  5:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-11-22  5:00 Is 'cc' broken or am I?? Christopher Keller
1996-11-23  5:00 ` Stephen Stuart
1996-12-02  5:00 ` Volker Hejny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox