开发者

Is it possible to make gdb break the first it runs anything inside a specific file?

开发者 https://www.devze.com 2023-03-13 03:14 出处:网络
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 t

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

精彩评论

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

关注公众号