2 Copyright © 2019, The AROS Development Team. All rights reserved.
5 Desc: called when a function is entered
8 #include <aros/debug.h>
9 #include <proto/exec.h>
11 void __cyg_profile_func_enter (void *this_fn
,
14 struct Task
*thisTask
= FindTask(NULL
);
16 frame
= (int *)__builtin_frame_address(1); /*of the 'func'*/
17 bug("[0x%p>>] Enter Func @ 0x%p (frame @ 0x%p)\n", thisTask
, this_fn
, frame
);