From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19725 invoked by alias); 9 Sep 2009 14:51:08 -0000 Received: (qmail 19644 invoked by uid 22791); 9 Sep 2009 14:51:06 -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.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 09 Sep 2009 14:50:59 +0000 Received: from int-mx04.intmail.prod.int.phx2.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.17]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n89Eotde011155; Wed, 9 Sep 2009 10:50:55 -0400 Received: from [IPv6:::1] (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx04.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n89EonBC008015 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 9 Sep 2009 10:50:53 -0400 Message-ID: <4AA7C0C9.8090101@redhat.com> Date: Wed, 09 Sep 2009 14:51: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@sourceware.org Subject: Re: source code query References: <74903b8c0908070548r3ca3608dv5d03a5475a749594@mail.gmail.com> <25361583.post@talk.nabble.com> In-Reply-To: <25361583.post@talk.nabble.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/msg00041.txt.bz2 On 09/09/2009 02:35 AM, pooja nagpal wrote: > > gdb is showing the source code . All the code is complied with "-g" > option. once I refreshed my PC , insight start picking up the source > code. but on other machine it is still not picking up the souce code ? It is unusual for gdb to be able to find the source code and not insight. In fact, I'm not sure I've ever seen this before. Try opening a debug window and seeing if that says anything when your source file is searched. There are two ways to do this: 1) Set GDBTK_DEBUG (optionally also set GDBTK_DEBUGFILENAME). See README. 2) *BEFORE* you encounter the problem (attempt to load the source for the file that you think should be found for the first time), open a console window and enter "tk ManagedWin::open DebugWin". And I have to ask, when you say "once I refreshed my PC, insight start picking up the source code." What exactly does this mean? > Second issue -- facing problem with breakpoints also. > Here we are compiling our source code with GCC complier and debugging > with cygwin\insight.exe. Is this can be cause of breakpoints . You haven't told me what your problem with breakpoints is. Can you elaborate a little? > Like gdb we have dir command to set the path . $cdir and $cwd are the > values of these . These are simply default values. This may not be sufficient, depending on your build environment. > Do we have some command for the insight also to set the source path. Unfortunately, no. That was never done. This was part of a big revamp of source window loading that I intended to play with, but never got around to doing. IMO, this is the biggest "hole" in insight today... Who knows, it might just be something that I try to "plug" before the next release. Insight uses gdb's source search path. To add something to it, simply use the console or add something to your .gdbinit file. Keith