I have an executable that was built from a lot of *.c and *.h files. When I use the following GDB command to add breakpoints:
rbreak .
it does the job, but it takes a VERY long time to finish, because it wants to put breakpoints in libc, openssl and other functions from 3rd party libs that I really don't care about.
How can I put these breakpoints quickly in my functions?
Here are some ideas how that could be achieved, but I am not sure if GDB supports any of them
- instruct GDB not to put breakpoints in 3rd party libs; or
- by silencing GDB's confirmation for each added breakpoint (it gets printed to console and may slow things too).
- somehow match regex on files when invoking the rbreak command?
Note that my functions don't have a naming pattern that could be matched with a regular expression.