I have a large C++ unix program that crashes randomly, but we can’t provide customers with a debug build. I want to capture details of all function calls and their parameters at the time of a crash and save this information to a text file. Is there a standard method to achieve this?
One approach I considered is to create a stack object at the beginning of each function. This object would store the function’s parameters in its constructor and release them in its destructor. Is there some library for same or some easy way to do it ?
6