This is the mail archive of the
mailing list for the GDB project.
Re: When will the gcc not include full path in the debug info
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Daniel Jacobowitz <drow at false dot org>
- Cc: binary dot chen at gmail dot com, gdb at sourceware dot org
- Date: Mon, 20 Nov 2006 22:13:35 +0200
- Subject: Re: When will the gcc not include full path in the debug info
- References: <email@example.com> <20061120140556.GB31834@nevyn.them.org>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> Date: Mon, 20 Nov 2006 09:05:56 -0500
> From: Daniel Jacobowitz <firstname.lastname@example.org>
> Cc: email@example.com
> > 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.