From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24219 invoked by alias); 23 Aug 2005 15:24:29 -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 23657 invoked by uid 22791); 23 Aug 2005 15:23:49 -0000 Received: from eastrmmtao06.cox.net (HELO eastrmmtao06.cox.net) (68.230.240.33) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Tue, 23 Aug 2005 15:23:49 +0000 Received: from white ([68.9.64.121]) by eastrmmtao06.cox.net (InterMail vM.6.01.04.00 201-2131-118-20041027) with ESMTP id <20050823152344.XGGO10292.eastrmmtao06.cox.net@white>; Tue, 23 Aug 2005 11:23:44 -0400 Received: from bob by white with local (Exim 3.36 #1 (Debian)) id 1E7acp-0007NM-00; Tue, 23 Aug 2005 11:23:43 -0400 Date: Tue, 23 Aug 2005 15:24:00 -0000 From: Bob Rossi To: Craig Jeffree , gdb@sources.redhat.com Subject: Re: trouble locating source files through relative paths Message-ID: <20050823152343.GA28058@white> Mail-Followup-To: Craig Jeffree , gdb@sources.redhat.com References: <1124436292.3582.64.camel@norman> <20050819124329.GA18911@white> <1124773410.3749.38.camel@norman> <20050823113138.GA27899@white> <20050823114028.GB27899@white> <20050823144911.GA27857@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050823144911.GA27857@nevyn.them.org> User-Agent: Mutt/1.5.9i X-SW-Source: 2005-08/txt/msg00089.txt.bz2 On Tue, Aug 23, 2005 at 10:49:11AM -0400, Daniel Jacobowitz wrote: > On Tue, Aug 23, 2005 at 07:40:28AM -0400, Bob Rossi wrote: > > On Tue, Aug 23, 2005 at 07:31:38AM -0400, Bob Rossi wrote: > > > On Tue, Aug 23, 2005 at 03:03:29PM +1000, Craig Jeffree wrote: > > > > On Fri, 2005-08-19 at 08:43 -0400, Bob Rossi wrote: > > > > > What was the 'dir' command that you issued? What compiler are you using? > > > > > Do you know what debug format you are using? (stabs or dwarf)? > > > > > > > > The dir command that I issued was: > > > > (gdb) dir /staff/taam/taam/bin/x86-Linux/nostrip/ > > > > Source directories searched: /staff/taam/taam/bin/x86-Linux/nostrip: > > > > $cdir:$cwd > > > > > > > > I'm using gcc 3.2.3 with the default debug format for x86-Linux (dwarf2 > > > > I believe). > > > > > > Is this problem reproducable in a small example? > > > > Geez, actually, I did just reproduce the problem. It seems that the only > > current solution to get it to work is to do as you said, put the path to > > where the include file is, not to where the relative path to it is. > > > > I'll look into this. > > Great! Yeah, I've seen this one before - I posted a (less thorough!) > analysis of it back when openp.exp was posted. I would _love_ to see > this fixed. IIRC, you can also trigger it by using -I../include and > trying to list code in a header file; I had a test case in the > gdb-patches archives somewhere but never had time to track it down. Exactly, this is how I reproduced it. Trying to open code in a header via ../inc. The funny thing is, 'info sources' finds the file after the dir command is added. This tells me that psymtab_to_fullname is working. What's not working is the list command. That could be the problem. Bob Rossi