From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3174 invoked by alias); 16 Nov 2009 22:17:53 -0000 Received: (qmail 3156 invoked by uid 22791); 16 Nov 2009 22:17:52 -0000 X-SWARE-Spam-Status: No, hits=-2.5 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; Mon, 16 Nov 2009 22:16:48 +0000 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id nAGMGl7g016037 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 16 Nov 2009 17:16:47 -0500 Received: from [IPv6:::1] (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id nAGMGh5d023986 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 16 Nov 2009 17:16:46 -0500 Message-ID: <4B01CF4A.1090201@redhat.com> Date: Mon, 16 Nov 2009 22:17:00 -0000 From: Keith Seitz User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.4pre) Gecko/20091014 Fedora/3.0-2.8.b4.fc11 Lightning/1.0pre Thunderbird/3.0b4 MIME-Version: 1.0 To: yunlu liu CC: insight@sources.redhat.com Subject: Re: can't open file in Insight References: <5d96e8200911161308n9e0c2caif70670ef5d1ad949@mail.gmail.com> <4B01C31A.5040509@redhat.com> <5d96e8200911161345r64b3b6cau16c02c2849bef514@mail.gmail.com> <4B01C9E6.5080004@redhat.com> <5d96e8200911161412w6d5eec25w1b99fa5694643819@mail.gmail.com> In-Reply-To: <5d96e8200911161412w6d5eec25w1b99fa5694643819@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-q4/txt/msg00037.txt.bz2 On 11/16/2009 02:12 PM, yunlu liu wrote: > Hi Keith, > Thanks for your email.I try to just enter the filename in the > console. It shows "undefined command". I try "help dir" and use the dir > command. No results are shown.I also have no idea how to display the .c > file. I wonder if I could read and complile the .c file via > insight.Looking forward to your reply and thanks a lot for your > consideration:) I hate to ask this, but I feel compelled. Are you compiling your application with debug info? That's the "-g" option to gcc? [Assuming your using gcc, of course.] Insight/gdb should be able to automatically locate your source files if you do. To use the dir command: If you source file lives in "/this/is/where/it/is/myfile.c", open the console window and type: (gdb) dir /this/is/where/it/is That's it. Insight will remember this the next time you start. To see the change immediately, change the display mode of the source window from "SOURCE" to anything (like ASSEMBLY) and then back to "SOURCE". I believe that should do it. Keith