From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 805 invoked by alias); 2 Nov 2009 20:20:15 -0000 Received: (qmail 794 invoked by uid 22791); 2 Nov 2009 20:20:14 -0000 X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from m98.hosting.altserver.com (HELO m98.hosting.altserver.com) (72.34.46.98) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 02 Nov 2009 20:20:10 +0000 Received: from help3.essnet.com ([208.249.80.247]:57064 helo=HELP3) by hosting.altserver.com with esmtpa (Exim 4.69) (envelope-from ) id 1N53No-0004dt-0C; Mon, 02 Nov 2009 12:20:08 -0800 Message-ID: <45DDB769B2DF47AD9AA27F855A9C7654@HELP3> From: =?iso-8859-1?Q?Mar=EDa_de_los_A._V=E1zquez?= To: "Keith Seitz" Cc: "insight" References: <3ECE384639D045ABA34B78C72EE7B4FA@HELP3> <4AEB29B0.6080009@redhat.com> In-Reply-To: <4AEB29B0.6080009@redhat.com> Subject: Re: Initialization Commands Date: Mon, 02 Nov 2009 20:20:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 8bit 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/msg00007.txt.bz2 > On 10/30/2009 10:52 AM, María de los A. Vázquez wrote: > >> I'm new with gdb and insight. I'm loading Insight from Code::Blocks to >> use it as my debbuger but I'm having problems with the Initialization >> Commands and .gdbinit file. When I run the debugger (Insight) it didn't >> recognize the initialization commands under Debugger settings >> (Code::Blocks) neither the init file (.gdbinit). Instead I always need >> to enter the commands manually so I don't know what I'm doing wrong?? >> Where does I need to declared the .gdbinit file so it recognize it??? >> Any help will be useful for me!!! Thanks. > > I don't know anything about Code::Blocks, but it sounds to me like they > are starting up gdb/insight using the "-nx" option, which suppresses > reading .gdbinit. Where is declared the "-nx" option? > Where is .gdbinit? Gdb looks in two places: $HOME and $PWD, i.e., your > home directory and the current directory. If .gdbinit is not in $HOME, I > would put it there and see if that works. I declared the .gdbinit file in my home directory and in the current directory but it didn't work. >> BTW >> I only have two declarations on the .gdbinit file: >> "target remote localhost:3333" >> "load" > > If you go to the Target Settings Dialog, you can have insight do this for > you automatically when you click the Run button. Of course, if > Code::Blocks is passing "-nx" to gdb/insight, insight won't read your > preferences file, anyway. But if you're like me and typically type at a > console window, this won't help you. > > Keith I try the Target Settings Dialog, but it doesn't work neither. If I close insight and open it again, I have to input all the information again. That isn't what I need. María