gdb shows you not only the filename, and line number, but also the corresponding line in the source code.