[fpc-pascal] weird compiler(?) problem

Sven Barth pascaldragon at googlemail.com
Fri Feb 14 07:45:09 CET 2014


On 14.02.2014 03:11, Martin Frb wrote:
> Strange though, because without blue dots, normally breakpoints to not
> work, but yours did (on the wrong line, but it did break).
>
> The only other thing I can think of is, if you have symlinks to your
> files, and did open them in the IDE via different links/original. And/or
> fpc used a different symlink than the IDE.
>
> In that cases it can happen that the IDE believes you have 2 independent
> files, while really you got just one. However breakpoints will work,
> because the error gets corrected when the IDE gives the wrong path to
> gdb, and retries with filename (no path) only. then gdb will set the
> breakpoint.

It can also be that the debug information for generics is (still) a bit 
messed up (the newly generated code in the unit with the specialization 
needs to point to the source where the generic is declared).

@Xiangrong Fang: do you use 2.6.2 or 2.7.1?

Regards,
Sven



More information about the fpc-pascal mailing list