Using gdb stop the program when it is using any function from file X

前端 未结 6 1928
广开言路
广开言路 2020-12-03 04:57

and I would like to know if there is any way to stop a program when is using a function from a certain file. Ideally what I am looking for is something like:



        
6条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-03 05:40

    rbreak foo.cpp:.

    Here . matches anything, and so breaks on all functions of file foo.cpp.

提交回复
热议问题