[fpc-pascal] Get all caller adresses of a procedure/function

Howard Page-Clark hdpc at talktalk.net
Mon Aug 6 18:17:02 CEST 2012

On 06/8/12 3:26, Rainer Stratmann wrote:
> procedure p1;
> begin
>   ...
> end;
> How to get all caller adresses of p1 in a program before p1 is executed?
> For example p1 is called from 20 different places in a program.
> Then I need the 20 caller adresses.

if by address you mean line number, then use the Find In Files dialog. 
Close all files in the Source Editor except the one containing p1 
In the "Text to Find" field type p1.
In the "Where" radiogroup select "Search all open files".
Should give you a list of every occurrence of p1.


More information about the fpc-pascal mailing list