From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26864 invoked by alias); 20 Nov 2006 20:13:56 -0000 Received: (qmail 26856 invoked by uid 22791); 20 Nov 2006 20:13:55 -0000 X-Spam-Check-By: sourceware.org Received: from nitzan.inter.net.il (HELO nitzan.inter.net.il) (192.114.186.20) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 20 Nov 2006 20:13:41 +0000 Received: from HOME-C4E4A596F7 ([81.5.50.14]) by nitzan.inter.net.il (MOS 3.7.3a-GA) with ESMTP id FFW89908 (AUTH halo1); Mon, 20 Nov 2006 22:13:35 +0200 (IST) Date: Mon, 20 Nov 2006 20:13:00 -0000 Message-Id: From: Eli Zaretskii To: Daniel Jacobowitz CC: binary.chen@gmail.com, gdb@sourceware.org In-reply-to: <20061120140556.GB31834@nevyn.them.org> (message from Daniel Jacobowitz on Mon, 20 Nov 2006 09:05:56 -0500) Subject: Re: When will the gcc not include full path in the debug info Reply-to: Eli Zaretskii References: <4561b069.2356ae07.3fc8.466c@mx.google.com> <20061120140556.GB31834@nevyn.them.org> 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/msg00147.txt.bz2 > Date: Mon, 20 Nov 2006 09:05:56 -0500 > From: Daniel Jacobowitz > Cc: gdb@sourceware.org > > > > 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 IIRC, there _is_ a way to do this: use COFF debug info (if you can). It has place only for the file name, not the leading directories.