This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: How not to step into functions called as arguments of another function?
- From: Michael Snyder <msnyder at specifix dot com>
- To: Peng Yu <pengyu dot ut at gmail dot com>
- Cc: gdb at sourceware dot org
- Date: Wed, 21 Nov 2007 05:44:46 -0800
- Subject: Re: How not to step into functions called as arguments of another function?
- References: <366c6f340711210411p3cef12d3r8cbd32899f0544b2@mail.gmail.com>
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