I am using -finstrument-functions to log function entry/exit to a circular buffer that can be analyzed when a certain condition is detected.
My issue is that it is quite tedious to look up all the function address/offset (function & call site) for each call to see what the calling sequence was.
What I would like to do is be able to somehow write the contents of a 2x15 array to a text file and then I can write a program to consume that and the symbol table to print out a 'human readable' calling sequence.
Or .. has this been done before by someone using finstrument-functions to profile code, etc. and thus there may be some tools available that do this or can be adapted? Or possibly debugger scripting that I don't know about that would loop through the array and decode function addresses and offsets?