[fpc-pascal] fpc in symlinked directory

Martin Frb lazarus at mfriebe.de
Wed Mar 26 15:36:40 CET 2014


On 26/03/2014 14:30, Tomas Hajny wrote:
> It makes no sense to use absolute paths in debug information, because it
> would make distribution of units compiled with debug information to other
> machines impossible (or more precisely - it would be possible to
> distribute them, but debugging would not work :/ ).
>
Absolute filenames (or at least more than just the name) are a must for 
some cases.

iF you debug a library, then you start some launcher app, which loads 
the library. Both launcher app, and library may contain a unit called 
"Foo". Yet the 2 Foo may be different units from different locations.
With just the filename, the debugger can not handle this.

As for debugging the exe on a diff computer. The IDE will try by 
filename only, if full path can not be found.
This fallback is also needed, because older gdb have some problems 
finding a unit by full path, if .. are in the name (which is the case 
for at least the lazarus.exe).






More information about the fpc-pascal mailing list