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).



_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to