From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9137 invoked by alias); 17 Nov 2009 16:52:27 -0000 Received: (qmail 9129 invoked by uid 22791); 17 Nov 2009 16:52:26 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-px0-f200.google.com (HELO mail-px0-f200.google.com) (209.85.216.200) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 17 Nov 2009 16:51:23 +0000 Received: by pxi38 with SMTP id 38so111542pxi.10 for ; Tue, 17 Nov 2009 08:51:21 -0800 (PST) MIME-Version: 1.0 Received: by 10.142.118.3 with SMTP id q3mr973309wfc.248.1258476681014; Tue, 17 Nov 2009 08:51:21 -0800 (PST) In-Reply-To: <4B01CF4A.1090201@redhat.com> References: <5d96e8200911161308n9e0c2caif70670ef5d1ad949@mail.gmail.com> <4B01C31A.5040509@redhat.com> <5d96e8200911161345r64b3b6cau16c02c2849bef514@mail.gmail.com> <4B01C9E6.5080004@redhat.com> <5d96e8200911161412w6d5eec25w1b99fa5694643819@mail.gmail.com> <4B01CF4A.1090201@redhat.com> Date: Tue, 17 Nov 2009 16:52:00 -0000 Message-ID: <5d96e8200911170851y755060a8n2561e61f0c481624@mail.gmail.com> Subject: Re: can't open file in Insight From: yunlu liu To: Keith Seitz Cc: insight@sources.redhat.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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/msg00039.txt.bz2 Hi Keith, Got it. Thanks for your help and consideration very much.Best wishes~ On Tue, Nov 17, 2009 at 6:16 AM, Keith Seitz wrote: > On 11/16/2009 02:12 PM, yunlu liu wrote: >> >> Hi Keith, >> =A0 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 applicat= ion > 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 > --=20 Best Regards!