From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4784 invoked by alias); 22 Jan 2004 18:45:33 -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 4777 invoked from network); 22 Jan 2004 18:45:32 -0000 Received: from unknown (HELO localhost.redhat.com) (216.129.200.20) by sources.redhat.com with SMTP; 22 Jan 2004 18:45:32 -0000 Received: from gnu.org (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 40F972B8F; Thu, 22 Jan 2004 13:45:29 -0500 (EST) Message-ID: <40101A49.1080902@gnu.org> Date: Thu, 22 Jan 2004 18:45:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030820 MIME-Version: 1.0 To: Eli Zaretskii Cc: Gernot Hillier , gdb@sources.redhat.com Subject: Re: handling of absolute source file paths (feature wish/implementation idea) References: <200401221601.17594.gernot.hillier@siemens.com> <1659-Thu22Jan2004192206+0200-eliz@elta.co.il> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-01/txt/msg00251.txt.bz2 > Gernot Hillier >> Date: Thu, 22 Jan 2004 16:01:14 +0100 >> >> 3. Implement a new setting "source-absolute-prefix" (analog to the already >> existing "solib-absolute-prefix") which allows the user to set a prefix for >> given absolute source code paths. > > > I like this suggestion the best. It does exactly what you need here: > allow the source directory tree to be moved deeper in the hierarchy. > Your other suggestion, searching the source path for relative file > names, sounds like an ad-hoc hack to me. Hmm, we're rapidly accumulating a long list of ways to alter the absolute-prefix. cf also: (gdb) help set debug-file-directory Set the directory where separate debug symbols are searched for. Separate debug symbols are first searched for in the same directory as the binary, then in the `.debug' subdirectory, and lastly at the path of the directory of the binary with the global debug-file directory prepended and the ./configure option: --with-sysroot[=DIR] Search for usr/lib et al within DIR. Might be time for some consolidation: set absolute-prefix {source,solib,sysroot,debug,all} (although an immediate source-absolute-prefix shouldn't hurt). BTW, wasn't there a mechanism for editing/replacing part of the source prefix added, or did that get lost? Andrew