From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,29348ba08699ff7d,start X-Google-Attributes: gidfee84,public From: Christopher Keller Subject: Is 'cc' broken or am I?? Date: 1996/11/22 Message-ID: <32960689.7F41@fived.c3i.saic.com>#1/1 X-Deja-AN: 198174517 content-type: text/plain; charset=us-ascii organization: Science Applications International Corporation mime-version: 1.0 newsgroups: comp.unix.osf.osf1 x-mailer: Mozilla 3.01 (X11; I; SunOS 5.5 sun4m) 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)