I have quite a big source code written in C and would like to generate all possible backtraces of a function. There are tools to obtain similar result during execution of the application, for example: STAT. Instead, I am in need of getting this information with just the source code, like with example some kind of static code analysis.
One can obtain this information manually one function at a time using CSCOPE.
I also came across another thread in here: how can I display all function name from cscope database? that uses CSCOPE to list all functions recursively in all directories. I hope there should be some way to use the CSCOPE command line to automatically retrieve all backtraces.