In recent versions of GDB, setting a breakpoint on a library function call results in multiple actual breakpoints:
Yup, it can be done.
To simply place breakpoints on all functions, use command:
So, this will place breakpoints on all the functions including PLT.
Now type:
This will save a list of all breakpoints in a file called as filename.
or
sed 's/@plt//g' filename > newfilename
Now type command:
or
At this point, gdb will put breakpoints only on the functions mentioned in the file called as "filename" or "newfilename" (if used sed).
Note: To filter functions more in the file "filename", one can use grep also according to the requirements. :)