From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22831 invoked by alias); 16 Oct 2010 17:32:16 -0000 Received: (qmail 22821 invoked by uid 22791); 16 Oct 2010 17:32:15 -0000 X-SWARE-Spam-Status: No, hits=-5.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD 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; Sat, 16 Oct 2010 17:32:09 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o9GHW6Ca012404 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 16 Oct 2010 13:32:06 -0400 Received: from valrhona.uglyboxes.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o9GHW3AM016279 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 16 Oct 2010 13:32:05 -0400 Message-ID: <4CB9E157.2050905@redhat.com> Date: Sat, 16 Oct 2010 17:32:00 -0000 From: Keith Seitz User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20100921 Fedora/3.1.4-1.fc13 Lightning/1.0b3pre Thunderbird/3.1.4 MIME-Version: 1.0 To: t1jump@comcast.net CC: insight@sourceware.org Subject: Re: .gdbtkinit help References: <000801cb6d53$84fd3150$8ef793f0$@net> In-Reply-To: <000801cb6d53$84fd3150$8ef793f0$@net> 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: 2010-q4/txt/msg00001.txt.bz2 On 10/16/2010 09:59 AM, Timothy Jump wrote: > I'm using Ubuntu 9.10 and I only find the .gdbtkinit flie in the Home > directory. I thought there was to be a copy both in the directory where I > executed Insight (project directory) and in the Home directory but I only > ever see it in the Home directory. When you start up Insight, open a console window and type: "tk set ::pref_init_filename" This will tell you where Insight thinks your init file is. From reading library/prefs.tcl, I see that it will look for .gdbtkinit (or gdbtk.ini on Windows) in $CWD (i.e., the directory from which you launched Insight). Failing that, it will fall back to $HOME. Try moving .gdbtkinit from $HOME to $CWD and see if that works. > I was trying to create either > separate project directories within the same Home Directory, or set > different Users (ergo different Home directories) for each different project > so I could have Insight set up specifically for each target/project and not > need to go through the set-up each time. You should be able to do this exactly as you proposed. I have tried this here ("mv ~/.gdbtkinit ."), and that works. I have also not had any problems saving my target preferences. So if you have more information on that, I would appreciate more details. Insight keys the session off the name of the executable you are debugging. So if you debug several different executables, it will (should) save session information (breakpoints, arguments, for example). Of course, if all your executables are named the same (but exist for different architectures), you might be out of luck. I don't think we use architecture as a key. If you can give me some more information about your setup, I might be able to offer other suggestions or even create some patches to help you. It would not surprise me too much if non-native preferences has bitrotted over the years. I only do native development nowadays. Keith