We've been tracking a crash for months, and we're not really getting any closer. The program crashes at seemingly random times. For some reason, we're not able to print out a stack backtrace. And to make it even harder, the crashes only occur on a specific hardware, which we haven't figured out how to debug, or how to use Valgrind and the likes.
Binary search through revisions could be an option. But as it usually takes around one workday to produce a crash, it will be extremely time-consuming.
So. I would like to print log messages (or something like that) in all/most the functions throughout our code. Of the type "Entering function X", "Leaving function Y" etc. Hopefully, that could give some pointers on which haystack to go looking for the needle in. Is there any simple way to do this, without having to manually go through (literally) thousands of functions? Anybody knows of any program or script or macro magic that could be used for this?
Thanks