pass set to our superclass. dont call anything until we have shown the functions...
[AROS.git] / compiler / instrfunc / profile_func_enter.c
blob748476cddce8a79455023d3d389089f0b42f6633
1 /*
2 Copyright © 2019, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: called when a function is entered
6 */
8 #include <aros/debug.h>
9 #include <proto/exec.h>
11 void __cyg_profile_func_enter (void *this_fn,
12 void *call_site)
14 struct Task *thisTask = FindTask(NULL);
15 int *frame = 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);