Is it possible to make gdb break first when it runs something inside a specific file?

That is, when we do not know which function inside the file is called, can we make it break without knowing the details?

+3
source share
1 answer

You can do this easily with the command rbreak. Just specify the exact file you want to control and the regular expression. So, for all functions in this file:

rbreak file.c:.
0
source

All Articles