I want to put breakpoint on all functions of a file. I came across this link : http://sourceware.org/gdb/download/onlinedocs/gdb/Set-Breaks.html#Set-Breaks
It sugges
rbreak filename.cpp:.* works fine for me.
rbreak filename.cpp:.*
Note that in order to put breakpoint in a file you need to compile the program with debug info, e.g
g++ -g filename.cpp