How can I get GDB to print all the source files that it recognises? I’ve tried setting a breakpoint:
break test.c:35
but GDB complains:
No source file name test.c
However, I know that GDB has recognised this file because it recognises the functions defined in it.
You can do it by
info sourcescommand.In your case
test.cshould be listed.