From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20636 invoked by alias); 12 Oct 2004 13:31:11 -0000 Mailing-List: contact insight-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sources.redhat.com Received: (qmail 20604 invoked from network); 12 Oct 2004 13:31:09 -0000 Received: from unknown (HELO main.gmane.org) (80.91.229.2) by sourceware.org with SMTP; 12 Oct 2004 13:31:09 -0000 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1CHMk6-0002hN-00 for ; Tue, 12 Oct 2004 15:31:06 +0200 Received: from 66.168.89.166 ([66.168.89.166]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 12 Oct 2004 15:31:02 +0200 Received: from gene.smith by 66.168.89.166 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 12 Oct 2004 15:31:02 +0200 To: insight@sources.redhat.com From: geneSmith Subject: Re: Can't find source files Date: Tue, 12 Oct 2004 13:31:00 -0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 66.168.89.166 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.3) Gecko/20040910 In-Reply-To: X-SW-Source: 2004-q4/txt/msg00018.txt.bz2 Dave Korn wrote, On 10/12/2004 5:04 AM: >>-----Original Message----- >>From: insight-owner On Behalf Of geneSmith >>Sent: 11 October 2004 23:26 > > >>If you set directory to: >> >>/cygdrive/d >> >>and your $cdir is /home/gene/source >> >>where d is a samba drive mapped to / >> >>Is there a reason why insight/gdb would not find the files at >> >>/cygdrive/d/home/gene/source ? > > > ? I can't see anything in the gdb docs that suggests it would concatenate > $cdir to $cwd. Where do you get that from ? > > cheers, > DaveK What I am implying is that gdb concatentates the paths specified by "directory" with the path to the source file contained in the object file as described in Debugging with GDB section 7.4, Specifying source directories. My runtime object files contains paths like /home/gene/source and I have set directory in gdb to /cygdrive/d. I am running gdb on cygwin and the target files are on a linux box. From windows (cygwin) I can see my linux files at /cygdrive/d/home/gene/source but gdb (insight) does not display the source. I compiled with -g and am not stripping debug info. With other directory and $cdir setting I can see source in insight but not wiht this particular setup. (Maybe I dont' completely know the meaining of $cdir?) -gene -- Lit up like Levy's