From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15960 invoked by alias); 21 Nov 2007 13:55:56 -0000 Received: (qmail 15796 invoked by uid 22791); 21 Nov 2007 13:55:55 -0000 X-Spam-Check-By: sourceware.org Received: from bluesmobile.specifix.com (HELO bluesmobile.specifix.com) (216.129.118.140) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 21 Nov 2007 13:55:49 +0000 Received: from [127.0.0.1] (bluesmobile.specifix.com [216.129.118.140]) by bluesmobile.specifix.com (Postfix) with ESMTP id 2A8CD3C000; Wed, 21 Nov 2007 05:35:25 -0800 (PST) Subject: Re: How not to step into functions called as arguments of another function? From: Michael Snyder To: Peng Yu Cc: gdb@sourceware.org In-Reply-To: <366c6f340711210411p3cef12d3r8cbd32899f0544b2@mail.gmail.com> References: <366c6f340711210411p3cef12d3r8cbd32899f0544b2@mail.gmail.com> Content-Type: text/plain Date: Wed, 21 Nov 2007 13:55:00 -0000 Message-Id: <1195652686.23780.24.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.10.3 (2.10.3-4.fc7) Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-11/txt/msg00208.txt.bz2 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