开发者

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:.
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜