Is there a way to trap a function call in C++. Like a process may be calling setLocale even though. I want to find whether is there any call to it or not ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
What I can understand from you statement. It is fairly easy to do with any debugger. Run you code on
gdbadd abreakpointon the first line of your function. When this breakpoint hits see thebacktraceto know how this function was called.