Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: hejny@buntspecht.physik.uni-giessen.de (Volker Hejny)
Subject: Re: Is 'cc' broken or am I??
Date: 1996/12/02	[thread overview]
Message-ID: <slrn45a58js.i0c.hejny@buntspecht.physik.uni-giessen.de> (raw)
In-Reply-To: 32960689.7F41@fived.c3i.saic.com


On Fri, 22 Nov 1996 15:01:13 -0500, Christopher Keller wrote:
>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.  

If you want to read the sources in gdb use the 'directory' command
to tell the debugger where the sources are. You heard about such
things like manuals ?

Why do you this is a bug ? IMHO this is exactly the way cc should
behave. I didn't make the experience that gcc handles this different ...

-- 
==============================================================================
Volker Hejny, II. Phys.Institut, Univ. Giessen |  Tel.: 0641 - 702 2783
Heinrich-Buff-Ring 16, D-35392 Giessen         |  Sekretariat II. Physik: 
EMail: Volker.Hejny@exp2.physik.uni-giessen.de |  Tel.: 0641 - 702 2761       
WWW: http://piggy.physik.uni-giessen.de/~hejny |  Fax : 0641 - 74390
==============================================================================
IMPORTANT: The telephone numbers are only valid until 20.12.1996 <- NEW DATE!!
New numbers:  Phone: 0641-99-33223   Sek.: 0641-99-33261   Fax.: changes later 
==============================================================================




      parent reply	other threads:[~1996-12-02  5:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]
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