Re: Is there a easy way to use the -finstrument-functions option?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



renjunqu <renjunqu@xxxxxxxxx> writes:

>           I want use gcc's "-finstrument-functions" option to hack a
> open-source project. But if i want to make the most use of this option, i
> should tell the compiler the my own definition of "__cyg_profile_func_enter"
> and "__cyg_profile_func_exit" functions. If the project i want to hack will
> create many different 'elf' files,and different 'elf' use different source
> files,so i have to define the two function in many many files.
>           Is there some easy ways to tell the compiler my function's
> definition???

I don't understand why you have to define the functions in many files.
Why can't you just define them once as globally visible functions?

Ian


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux