From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25163 invoked by alias); 13 Jan 2003 22:17:43 -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 25150 invoked from network); 13 Jan 2003 22:17:41 -0000 Received: from unknown (HELO hub.ott.qnx.com) (209.226.137.76) by 209.249.29.67 with SMTP; 13 Jan 2003 22:17:41 -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 RAA14684; Mon, 13 Jan 2003 17:09:02 -0500 Received: from catdog ([10.4.2.2]) by smtp.ott.qnx.com (8.8.8/8.6.12) with SMTP id RAA02132; Mon, 13 Jan 2003 17:17:28 -0500 Message-ID: <0ed601c2bb51$818e58d0$0202040a@catdog> From: "Kris Warkentin" To: "Andrew Cagney" Cc: "Elena Zannoni" , "Fernando Nasser" , "Felix Lee" , References: <200301102242.h0AMgTl02921@paper-wolf-solo.tigerfood.org> <0d6601c2bb1e$70a94670$0202040a@catdog> <3E230B07.8030607@redhat.com> <0e5301c2bb36$1002c400$0202040a@catdog> <3E2315B5.8030003@redhat.com> <0e8401c2bb47$c00d89a0$0202040a@catdog> <3E2332A5.10403@redhat.com> Subject: Re: patch to use target specific .gdbinit file Date: Mon, 13 Jan 2003 22:17: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/msg00213.txt.bz2 > > Er, that is a single gdb executable supporting ``multiple architectures''. > Well then a configure option isn't the answer. We build GDBs targetting 5 different CPUs. At the moment, these are separate binaries so it's an easy matter to have each binary look for a hard-wired $HOME/.gdbinit-nto. Someday, however, we want to multi-arch gdb (as we already have with binutils) so that we can ship one gdb binary. That is where the configure/compile time setting of the extra gdbinit file falls apart. What I was asking about earlier was a runtime method of determining the file to source so that if I use the same binary for multiple targets, I can source a different file for each one. I was thinking that we should put a hook in the code that is run when switching targets to source a target file based on what gdb thinks its target is at the time. cheers, Kris