How to set a breakpoint in gdb for all functions of a certain file?

1

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.

    
asked by anonymous 26.02.2015 / 15:42

1 answer

1

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 .

    
26.02.2015 / 15:42