Automatically adding Enter/Exit Function Logs to a Project

后端 未结 5 915
攒了一身酷
攒了一身酷 2020-11-29 04:42

I have a 3rd party source code that I have to investigate. I want to see in what order the functions are called but I don\'t want to waste my time typing:

pr         


        
5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-29 05:24

    Agree with William, use gdb to see the run time flow.
    There are some static code analyzer which can tell which functions call which and can give you some call flow graph. One tool is "Understand C++" (support C/C++) but thats not free i guess. But you can find similar tools.

提交回复
热议问题