From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12335 invoked by alias); 13 Jan 2003 19:01:16 -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 12299 invoked from network); 13 Jan 2003 19:01:14 -0000 Received: from unknown (HELO hub.ott.qnx.com) (209.226.137.76) by 209.249.29.67 with SMTP; 13 Jan 2003 19:01:14 -0000 Received: from smtp.ott.qnx.com (smtp.ott.qnx.com [10.0.2.158]) by hub.ott.qnx.com (8.9.3/8.9.3) with ESMTP id NAA02226; Mon, 13 Jan 2003 13:52:35 -0500 Received: from catdog ([10.4.2.2]) by smtp.ott.qnx.com (8.8.8/8.6.12) with SMTP id OAA05422; Mon, 13 Jan 2003 14:01:01 -0500 Message-ID: <0e5301c2bb36$1002c400$0202040a@catdog> From: "Kris Warkentin" To: "Andrew Cagney" , "Elena Zannoni" , "Fernando Nasser" Cc: "Felix Lee" , References: <200301102242.h0AMgTl02921@paper-wolf-solo.tigerfood.org> <0d6601c2bb1e$70a94670$0202040a@catdog> <3E230B07.8030607@redhat.com> Subject: Re: patch to use target specific .gdbinit file Date: Mon, 13 Jan 2003 19:01:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-SW-Source: 2003-01/txt/msg00204.txt.bz2 > Kris, > > In the past there was a proposal (patch?) to add a configuration time > option that would specify a system init file. There was a patch. I > believe that the actual idea was accepted as sound but the patch was > lost in the paper trail :-( Can I suggest extending your patch so that > the mechanism and file are specified at configure time (please don't ask > me which of --with or --use or --... is the correct option :-). One problem with this (as Felix suggested earlier) is dealing with a gdb which supports multiple targets. The whole point is to be able to have per-target init files and hard wiring it in loses that. Specifying at config time would be okay for enable/disable but I think it would be better to have some sort of system of nomenclature for extra init files. Here's a question: does a multi-targetted gdb know what it's targetting at the point of reading the .gdbinit or is this determined later? Is it switchable per session? I'm thinking that another possibility is to have it check for .gdbinit-$TARGET at the time that the target is determined. cheers, Kris > Some things to think about: > - a command to display the .gdbinit load order (with doco). If people > get wierd behavour, being able to dsiplay this will be useful. > - doco (hmm, is there any config doco?) on the config option > > Per earlier e-mail, I don't personally thing that .gdbinit-$TARGET is a > good idea. > > You'll want to double check this with both Fernando (CLI) and Elena (top.c). > > Andrew