Hi,
I am programming in C.
( You know that __FILE__ is a 'macro' which may be used to print debug messages. )
3 questions :a) I have 10000 functions in my project. I am interested in 100 of them. Whenever any of them are entered, I want a message printed saying the same. ( such as "function foo_bar entered." when entering foo_bar )
What is the least effort way of doing this ? I hate to edit the individual functions. They are too many.
b) Given a function address, can any compiler tricks be used to print the associated function name ( without manually putting the name in the source code ) ? ( I know that map file will give it, but i am looking for an automatic way of doing this at runtime itself. )
c) Any good website or book for info related to debugging code execution ??
thanks shankar