[fpc-pascal] Fingerprinting operation of a program

Sven Barth pascaldragon at googlemail.com
Sat Feb 19 12:32:30 CET 2011


On 18.02.2011 19:19, Mark Morgan Lloyd wrote:
> I need to trace through a program, running on two different systems
> which might or might not have the same OS, in order to find out where
> it's failing.
>
> Before I start giving myself a gdb refresher course or manually
> inserting trace messages, is there any way that I can extract a trace of
> procedure entry/exits, preferably identified by name rather than by
> address, using e.g. profiling hooks?
>

You could try to compile your program using fpprofiler (it uses fpc in 
the background). See here: 
http://wiki.lazarus.freepascal.org/wiki/FPProfiler

I've never used it before, but it might help you.

Regards,
Sven



More information about the fpc-pascal mailing list