This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]