Reputation: 116343
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.
Upvotes: 1
Views: 140
Reputation: 35775
You can do it by info sources
command.
(gdb) info sources
Source files for which symbols have been read in:
Source files for which symbols will be read in on demand:
/root/test.cpp
(gdb)
In your case test.c
should be listed.
Upvotes: 1