How not to step into functions called as arguments of another function?

Michael Snyder msnyder@specifix.com
Wed Nov 21 13:55:00 GMT 2007


On Wed, 2007-11-21 at 06:11 -0600, Peng Yu wrote:
> Hi,
> 
> Suppose I have two functions in C++.
> 
> void f(int x);
> 
> int g();
> 
> If I call "f(g())" in my program, when I want to step into f(), I have
> to first step in g() first. I'm wondering whether there is simple way
> to step into f() directly without stepping into g()?

Not in one command, but in two:
(gdb) break f
(gdb) continue




More information about the Gdb mailing list