* When will the gcc not include full path in the debug info
@ 2006-11-20 13:41 Bin Chen
2006-11-20 14:06 ` Daniel Jacobowitz
0 siblings, 1 reply; 4+ messages in thread
From: Bin Chen @ 2006-11-20 13:41 UTC (permalink / raw)
To: gdb; +Cc: binary.chen
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.
Thanks a lot.
ABAI
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: When will the gcc not include full path in the debug info
2006-11-20 13:41 When will the gcc not include full path in the debug info Bin Chen
@ 2006-11-20 14:06 ` Daniel Jacobowitz
2006-11-20 20:13 ` Eli Zaretskii
0 siblings, 1 reply; 4+ messages in thread
From: Daniel Jacobowitz @ 2006-11-20 14:06 UTC (permalink / raw)
To: Bin Chen; +Cc: gdb
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: When will the gcc not include full path in the debug info
2006-11-20 14:06 ` Daniel Jacobowitz
@ 2006-11-20 20:13 ` Eli Zaretskii
2006-11-20 20:18 ` Daniel Jacobowitz
0 siblings, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2006-11-20 20:13 UTC (permalink / raw)
To: Daniel Jacobowitz; +Cc: binary.chen, gdb
> Date: Mon, 20 Nov 2006 09:05:56 -0500
> From: Daniel Jacobowitz <drow@false.org>
> 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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: When will the gcc not include full path in the debug info
2006-11-20 20:13 ` Eli Zaretskii
@ 2006-11-20 20:18 ` Daniel Jacobowitz
0 siblings, 0 replies; 4+ messages in thread
From: Daniel Jacobowitz @ 2006-11-20 20:18 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: binary.chen, gdb
On Mon, Nov 20, 2006 at 10:13:35PM +0200, Eli Zaretskii wrote:
> 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.
The full pathname isn't the only thing you'd lose, I imagine! Like
modern C++ support, macros, a routinely tested debug reader...
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-11-20 20:18 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-20 13:41 When will the gcc not include full path in the debug info Bin Chen
2006-11-20 14:06 ` Daniel Jacobowitz
2006-11-20 20:13 ` Eli Zaretskii
2006-11-20 20:18 ` Daniel Jacobowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox