Print complete control flow through gdb including values of variables

北城余情 提交于 2019-12-03 20:26:09

Tell us a little more about the environment. dtrace, for example, will do a marvelous job of this in Solaris or Leopard. gprof is another possibility.

A bumpo version of this could be done with yes(1), or expect(1).

If you want to get fancy, GDB can be scripted with Python in some versions.

What you are describing sounds a bit like gdb's "tracepoint debugging". See gdb's internal help "help tracepoint". You can also see a whitepaper here: http://sourceware.org/gdb/talks/esc-west-1999/

Unfortunately, this functionality is not currently implemented for native debugging, but I believe that CodeSourcery is doing some work on it.

RandomNickName42

Check this out, unlike Coverity, Fenris is free and widly used..

How to print the next N executed lines automatically in GDB?

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!