Is it possible to make gdb break the first it runs anything inside a specific file?
That is ,when we 开发者_StackOverflowdon't know which function inside a file is called,can we make it break without knowing more details?
You can do this easily with the rbreak
command. Just specify the exact file you wish to monitor and a regex. So, for all functions in a given file :
rbreak file.c:.
精彩评论