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

Asked

Viewed 57 times

1

Is it possible to set a breakpoint for all functions of a particular file in gdb? An application, for example, would check if the program passes by certain file during its execution.

1 answer

1


Use the rbreak, that defines breakpoints according to a regular expression. To set breakpoints in all file functions arquivo.c, use the following command:

(gdb) rbreak arquivo.c:.

More information on documentation.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.