From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2199 invoked by alias); 20 Nov 2006 14:06:10 -0000 Received: (qmail 2188 invoked by uid 22791); 20 Nov 2006 14:06:09 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Mon, 20 Nov 2006 14:05:58 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1Gm9mW-0008Ie-N8; Mon, 20 Nov 2006 09:05:56 -0500 Date: Mon, 20 Nov 2006 14:06:00 -0000 From: Daniel Jacobowitz To: Bin Chen Cc: gdb@sourceware.org Subject: Re: When will the gcc not include full path in the debug info Message-ID: <20061120140556.GB31834@nevyn.them.org> Mail-Followup-To: Bin Chen , gdb@sourceware.org References: <4561b069.2356ae07.3fc8.466c@mx.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4561b069.2356ae07.3fc8.466c@mx.google.com> User-Agent: Mutt/1.5.13 (2006-08-11) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-11/txt/msg00146.txt.bz2 On Mon, Nov 20, 2006 at 09:35:06PM +0800, Bin Chen wrote: > Hi, > > In GDB manual, section "Specifying source directories", it says > "Executable programs sometimes do not record the directories of the > source files from which they were compiled, just the names." > > I am curious when will this rule take effect? I have checked the gcc > man page, seems no ways to let it use only the file name instead full > path. It depends what compiler you're using. I don't know any way to make GCC do this - but someone posted a patch for it a few months ago. I don't think it was ever committed, but you can probably find it in the gcc-patches archives. -- Daniel Jacobowitz CodeSourcery