From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18331 invoked by alias); 17 Nov 2005 19:46:45 -0000 Received: (qmail 18305 invoked by uid 22791); 17 Nov 2005 19:46:42 -0000 Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Thu, 17 Nov 2005 19:46:42 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1EcpiR-0005Ii-CQ; Thu, 17 Nov 2005 14:46:39 -0500 Date: Thu, 17 Nov 2005 23:44:00 -0000 From: Daniel Jacobowitz To: Eli Zaretskii Cc: Andrew STUBBS , gdb-patches@sources.redhat.com Subject: Re: [PATCH] -nx-except-gdbtkinit option Message-ID: <20051117194639.GA20312@nevyn.them.org> Mail-Followup-To: Eli Zaretskii , Andrew STUBBS , gdb-patches@sources.redhat.com References: <437B5ED3.70805@st.com> <437CB049.6060304@st.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.8i Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2005-11/txt/msg00301.txt.bz2 On Thu, Nov 17, 2005 at 09:33:17PM +0200, Eli Zaretskii wrote: > > gdb -nx-except-gdbtkinit -d scriptdir -x globalscript \ > > -x ~/.gdbinit -x ./.gdbinit ..... > > > > The purpose is (among other things) to set up transparently (to the > > user) a selection of user-defined commands (for connecting and > > configuring target boards) which are available to users in the .gdbinit > > files. > > Sorry, I'm still confused. Doesn't GDB normally read ~/.gdbinit and > ./.gdbinit? If so, why do you need to use -nx and then load these > init files manually? In order for the global script to be loaded before .gdbinit, I think. > > If -nx is used it has undesirable side effects when using Insight. > > In case it wasn't clear, it's those ``undesirable side effects'' are > what I was asking to describe in some detail. I don't understand what > kind of problems it causes. Perhaps those are misfeatures or bugs we > need to fix, instead of introducing a new option. It sounds like there's no GDB command to process .gdbtkinit, which is a TCL file rather than a GDB CLI script file. Andrew, is that right? If so, have you considered adding such a command to Insight, instead? -- Daniel Jacobowitz CodeSourcery, LLC