[fpc-pascal] Debug information
Martin Frb
lazarus at mfriebe.de
Tue Jan 13 16:14:03 CET 2015
On 13/01/2015 14:40, Rainer Stratmann wrote:
> Can not get debug information
>
> -g -gl -gw
>
> switched on
>
> but no further information (line nr) is displayed when an error occured.
-gl has a "feature" it prints the stack info, until it finds an address
for which there is no stack info (e.g. in the rtl, if the rtl was not
compiled with info).
IIRC this is to avoid issues if an error occurred while getting line
info. But not sure.
So if your first address is not in code with debug info, then that is it.
If you run in the debugger, or resolve with leak-view then this will not
happen. But ofcourse if the error occurs with either a corrupted stack,
or in some code (e.g system kernal) that does not use stackframes then
the stack can not always be parsed.
More information about the fpc-pascal
mailing list