From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5319 invoked by alias); 2 Jan 2003 15:08:24 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 5293 invoked from network); 2 Jan 2003 15:08:20 -0000 Received: from unknown (HELO localhost.redhat.com) (66.30.197.194) by 209.249.29.67 with SMTP; 2 Jan 2003 15:08:20 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 7243E3DE5; Thu, 2 Jan 2003 15:08:09 +0000 (GMT) Message-ID: <3E1455D9.2010009@redhat.com> Date: Thu, 02 Jan 2003 15:08:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.1) Gecko/20021211 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Felix Lee Cc: gdb@sources.redhat.com Subject: Re: target-dependent .gdbinit References: <200212281858.gBSIwJJ07676@paper-wolf-solo.tigerfood.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-01/txt/msg00006.txt.bz2 > So I'm thinking I want gdb to read ~/.gdbinit-$target after > ~/.gdbinit. Does that seem like a sensible thing to do? > > I'm wary of making target a special case. My feeling is I'd > want a single .gdbinit file that has some form of #if for > target or host or gdb version or other conditions. But I'm > not sure that's all that useful. The added complexity > doesn't seem to be worth it. > > But target is already a special case sometimes, because > there's .vxgdbinit and such. Hmm, something else to delete .... > Also, behavior like this could be easily synthesized with a > front-end script that ran gdb with the right -x options. > The rationale for putting it into gdb: it's standardization. how about something like: (gdb) eval source ~/.gdbinit-$target ? Andrew