From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8336 invoked by alias); 26 Aug 2005 03:35:53 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 8316 invoked by uid 22791); 26 Aug 2005 03:35:48 -0000 Received: from chfw.preston.net (HELO universe.preston.net) (202.14.89.130) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Fri, 26 Aug 2005 03:35:48 +0000 Received: from norman (norman.preston.net [202.14.10.82]) by universe.preston.net (8.11.6/8.11.6) with ESMTP id j7Q3ZPT04930; Fri, 26 Aug 2005 13:35:25 +1000 Subject: Re: trouble locating source files through relative paths From: Craig Jeffree To: Bob Rossi Cc: gdb@sources.redhat.com In-Reply-To: <20050826022000.GA1699@white> References: <1124436292.3582.64.camel@norman> <20050819124329.GA18911@white> <1124773410.3749.38.camel@norman> <20050823113138.GA27899@white> <20050823114028.GB27899@white> <1124866437.3749.75.camel@norman> <20050824112417.GA30211@white> <1124928432.10500.12.camel@norman> <20050825111158.GA32174@white> <1125013381.10500.18.camel@norman> <20050826022000.GA1699@white> Content-Type: text/plain Date: Fri, 26 Aug 2005 03:35:00 -0000 Message-Id: <1125027325.10500.82.camel@norman> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-SW-Source: 2005-08/txt/msg00101.txt.bz2 On Thu, 2005-08-25 at 22:20 -0400, Bob Rossi wrote: > OK, thanks. Is there any .cpp files that are in the relative directory? I > want to know if GDB can find the .cpp files but not the .H files. So, do > 'info sources' before the dir command and check to see if the .cpp files > from the relative directory have an absolute path to them. If not, do the > dir command, and then see. Thanks. Unfortunately no. Our build system "installs" header files into a common include directory and this include directory is specified as a relative path in the -I option to g++. The actual compilation units are always specified to g++ simply by filename as they are always in the current working directory since make changes to that directory. Cheers, Craig.