From: Christopher Keller <ckeller@fived.c3i.saic.com>
Subject: Is 'cc' broken or am I??
Date: 1996/11/22 [thread overview]
Message-ID: <32960689.7F41@fived.c3i.saic.com> (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)
next reply other threads:[~1996-11-22 5:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-11-22 5:00 Christopher Keller [this message]
1996-11-23 5:00 ` Is 'cc' broken or am I?? Stephen Stuart
1996-12-02 5:00 ` Volker Hejny
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox