From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,29348ba08699ff7d X-Google-Attributes: gidfee84,public From: hejny@buntspecht.physik.uni-giessen.de (Volker Hejny) Subject: Re: Is 'cc' broken or am I?? Date: 1996/12/02 Message-ID: #1/1 X-Deja-AN: 201849945 references: <32960689.7F41@fived.c3i.saic.com> organization: University of Giessen, Germany reply-to: hejny@piggy.physik.uni-giessen.de newsgroups: comp.unix.osf.osf1 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 ==============================================================================