From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20060 invoked by alias); 17 Nov 2005 19:49:56 -0000 Received: (qmail 20003 invoked by uid 22791); 17 Nov 2005 19:49:54 -0000 Received: from fra-del-02.spheriq.net (HELO fra-del-02.spheriq.net) (195.46.51.98) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Thu, 17 Nov 2005 19:49:54 +0000 Received: from fra-out-03.spheriq.net (fra-out-03.spheriq.net [195.46.51.131]) by fra-del-02.spheriq.net with ESMTP id jAHJnoJh013006 for ; Thu, 17 Nov 2005 19:49:50 GMT Received: from fra-cus-01.spheriq.net (fra-cus-01.spheriq.net [195.46.51.37]) by fra-out-03.spheriq.net with ESMTP id jAHJnnV2025814 for ; Thu, 17 Nov 2005 19:49:50 GMT Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by fra-cus-01.spheriq.net with ESMTP id jAHJni91020087 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Thu, 17 Nov 2005 19:49:48 GMT Received: from zeta.dmz-eu.st.com (ns2.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 82617DA41; Thu, 17 Nov 2005 19:49:44 +0000 (GMT) Received: by zeta.dmz-eu.st.com (STMicroelectronics, from userid 60012) id AE3CB47569; Thu, 17 Nov 2005 19:52:43 +0000 (GMT) Received: from zeta.dmz-eu.st.com (localhost [127.0.0.1]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 7736475994; Thu, 17 Nov 2005 19:52:43 +0000 (UTC) Received: from mail1.bri.st.com (mail1.bri.st.com [164.129.8.218]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id DFE1E47566; Thu, 17 Nov 2005 19:52:42 +0000 (GMT) Received: from [164.129.15.13] (terrorhawk.bri.st.com [164.129.15.13]) by mail1.bri.st.com (MOS 3.5.8-GR) with ESMTP id CGZ48051 (AUTH "andrew stubbs"); Thu, 17 Nov 2005 19:49:43 GMT Message-ID: <437CDE3A.3010701@st.com> Date: Fri, 18 Nov 2005 00:08:00 -0000 From: Andrew STUBBS User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) MIME-Version: 1.0 To: Eli Zaretskii Cc: gdb-patches@sources.redhat.com Subject: Re: [PATCH] -nx-except-gdbtkinit option References: <437B5ED3.70805@st.com> <437CB049.6060304@st.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-O-Spoofed: Not Scanned X-O-General-Status: No X-O-Spam1-Status: Not Scanned X-O-Spam2-Status: Not Scanned X-O-URL-Status: Not Scanned X-O-Virus1-Status: No X-O-Virus2-Status: Not Scanned X-O-Virus3-Status: No X-O-Virus4-Status: No X-O-Virus5-Status: Not Scanned X-O-Image-Status: Not Scanned X-O-Attach-Status: Not Scanned X-SpheriQ-Ver: 4.1.07 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/msg00302.txt.bz2 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? I want the .gdbinit files loaded after the mystical 'globalscript' file. Then they can use commands defined by that script. >>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. Without this file Insight does not remember any of your settings, such as window size and position, target settings and breakpoints. > `.gdbtkinit' is a file name, so it should have the @file markup, not > @code. > > Other than that, the documentation patch is approved, conditioned on > the code patch approval. Thanks. Thanks Andrew