From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20777 invoked by alias); 2 Jan 2003 20:04: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 20748 invoked from network); 2 Jan 2003 20:04:42 -0000 Received: from unknown (HELO hug.dreamhost.com) (66.33.197.18) by 209.249.29.67 with SMTP; 2 Jan 2003 20:04:42 -0000 Received: from paper-wolf-solo.tigerfood.org (localhost [127.0.0.1]) by hug.dreamhost.com (Postfix) with ESMTP id 1798517E94 for ; Thu, 2 Jan 2003 12:04:30 -0800 (PST) Received: from tigerfood.org (flee@localhost) by paper-wolf-solo.tigerfood.org (8.11.6/8.11.6) with ESMTP id h02K3IB25109 for ; Thu, 2 Jan 2003 12:03:19 -0800 Message-Id: <200301022003.h02K3IB25109@paper-wolf-solo.tigerfood.org> X-Authentication-Warning: paper-wolf-solo.tigerfood.org: flee owned process doing -bs From: Felix Lee Subject: Re: target-dependent .gdbinit To: gdb@sources.redhat.com In-reply-to: <3E148F45.5020502@redhat.com> on Thu, 02 Jan 2003 19:13:09 GMT. Date: Thu, 02 Jan 2003 20:04:00 -0000 X-SW-Source: 2003-01/txt/msg00026.txt.bz2 Andrew Cagney : > It should be kept simple. A GDB install should only read `.gdbinit' > (the vx hacks, I think, should just go). A user is then free to > customize their .gdbinit to do things like read .gdbinit-$target, or > even conditionally interpret sections of the init file. yes, but if I'm the gdb maintainer for a site installation, then sometimes I'll want site-wide gdbinit to handle pecularities of the site. telling all the users, "put this in your .gdbinit" is unwieldy, especially if it may change in the future. specific instance of target-dependent .gdbinit: I've got a gdb that will examine core files from a target OS with shared library support. gdb shouldn't try to map in the host OS shared libraries. the simple solution is to set solib-absolute-prefix to a location that has the target OS shared libs. this is something you'd want to do in a target-specific .gdbinit. there is not necessarily one setting that applies to the entire site. --