From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20621 invoked by alias); 8 Sep 2009 15:01:07 -0000 Received: (qmail 20515 invoked by uid 22791); 8 Sep 2009 15:01:04 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1-old.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 08 Sep 2009 15:00:55 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com ([10.11.47.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n88F0q1x010299 for ; Tue, 8 Sep 2009 11:00:52 -0400 Received: from [IPv6:::1] (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n88F0SHN016770 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 8 Sep 2009 11:00:43 -0400 Message-ID: <4AA6718B.4030501@redhat.com> Date: Tue, 08 Sep 2009 15:01:00 -0000 From: Keith Seitz User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.1) Gecko/20090814 Fedora/3.0-2.6.b3.fc11 Lightning/1.0pre Thunderbird/3.0b3 MIME-Version: 1.0 To: pooja nagpal CC: insight@sources.redhat.com Subject: Re: source code query References: <74903b8c0908070548r3ca3608dv5d03a5475a749594@mail.gmail.com> In-Reply-To: <74903b8c0908070548r3ca3608dv5d03a5475a749594@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact insight-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sourceware.org X-SW-Source: 2009-q3/txt/msg00039.txt.bz2 On 08/07/2009 05:48 AM, pooja nagpal wrote: > Insight sometimes cannot find the source code. > We believe this is due to a windows environment variable being set > incorrectly, but we do not fully understand the issue or why it seems > to differ between users. What makes you believe that a Windows environment variable would alter the way gdb or Insight work? To the best of my knowledge, environment variables do not affect gdb's or Insight's ability to find source files (or do just about anything else). The first thing to check is if gdb can find your source file (if Insight cannot). Open a console window and type "list" (if you want the current source location). If gdb outputs an error saying that it cannot find your source, you probably need to set the source code search directory path. Type "help dir" in a console window to see how to do this. I am, of course, assuming that all your object files were compiled with debug info. If they weren't, there is no way gdb or Insight could find them. [I know, that's a really dumb thing to say, but it happens so frequently, that I have to mention it.] Keith