Is it possible to set a breakpoint for all functions of a given file in gdb? An application, for example, would check if the program goes through a certain file during its execution.
Is it possible to set a breakpoint for all functions of a given file in gdb? An application, for example, would check if the program goes through a certain file during its execution.
Use rbreak
, which defines breakpoints according to a regular expression. To set breakpoints in all functions of the arquivo.c
file, use the following command:
(gdb) rbreak arquivo.c:.
More information at documentation .