GDB: How to list all source files used for compilation

Solution 1:

You are probably looking for info sources. info functions could also be helpful.

Don't forget you can do things like type break and then just press tab, which will list all relevant functions.