Right now, I'm using a combination of
gcc -g and the
objdump -S modes to generate assembly code with debug source code interleaved. However, I'm having trouble correlating some of the functions that were in the executable to their original source because the final executable contains source code from many different files. Is there a way to get a debug pure source representation (with no assembly) of all of the functions in an executable, using the gcc toolchain? That is, I'm looking for the source that was used for all of the functions in my executable, arranged in the order that the functions appear in the executable, so that I can compare that source to the
objdump -S output (which I'm also comparing to Ghidra and Binary Ninja output).
Thanks for your time in responding!