From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9153 invoked by alias); 23 Jan 2004 12:07:19 -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 9146 invoked from network); 23 Jan 2004 12:07:18 -0000 Received: from unknown (HELO mainserv.chemcon.no) (193.75.7.58) by sources.redhat.com with SMTP; 23 Jan 2004 12:07:18 -0000 Received: from cc-intern01 (cc-intern01.chemcon.nett [192.168.1.2]) by mainserv.chemcon.no (8.12.8/8.12.8) with ESMTP id i0NC7H6H021848 for ; Fri, 23 Jan 2004 13:07:17 +0100 Subject: Re: gdb has problems finding my sources (now with testcase) From: Tarjei Knapstad To: gdb In-Reply-To: <1074703990.24026.109.camel@cc-intern01> References: <1074694168.24023.73.camel@cc-intern01> <20040121151232.GA1013@nevyn.them.org> <1074703990.24026.109.camel@cc-intern01> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Fri, 23 Jan 2004 12:07:00 -0000 Message-Id: <1074859637.24026.220.camel@cc-intern01> Mime-Version: 1.0 X-SW-Source: 2004-01/txt/msg00266.txt.bz2 On Wed, 2004-01-21 at 17:53, Tarjei Knapstad wrote: > On Wed, 2004-01-21 at 16:12, Daniel Jacobowitz wrote: > > On Wed, Jan 21, 2004 at 03:09:13PM +0100, Tarjei Knapstad wrote: > > OK, I have just created a tiny KDevelop project, autoconf and all, which > reproduces the problem exactly. The roughly 360kB tarball can be > downloaded from: > > http://www.chemcon.no/files/gdbtest.tar.bz2 > > I made a KDevelop project to reproduce all compiler arguments etc. > exactly - sorry about the size. > > Run configure in the gdbtest-0.1/ subdirectory with these arguments: > > ./configure --with-extra-includes=../../../ --enable-debug=full > I've done some more testing, and the relative include path seems to be the problem. If I use --with-extra-includes=/full/path/to/header instead it works flawlessly. I noticed the new ongoing thread about absolute source file paths which may be related to this. Is there any argument I can give gdb that will make it accept relative paths? The reason for using relative paths is because this is usually set from within KDevelop, and the KDevelop project file lives in CVS. I would like to avoid having /home/joesixpack paths in this file as it would mean every developer would have to change this manually at every update. Cheers, -- Tarjei Knapstad